27 lines
767 B
Batchfile
27 lines
767 B
Batchfile
|
@echo off
|
||
|
|
||
|
SET src=%cd%
|
||
|
|
||
|
cd ..
|
||
|
if not exist "build\" mkdir build
|
||
|
cd build
|
||
|
|
||
|
REM: ## The arrangement of this build ##
|
||
|
REM: The "base layer" must be built and shared by all dynamic components.
|
||
|
REM: In this example the the base layer is linked via load-time linking with the other modules.
|
||
|
REM: The "plugin" is loaded at run-time.
|
||
|
|
||
|
|
||
|
|
||
|
REM: Build the base layer as a .dll (also produces load-time linking data in win32_base.lib)
|
||
|
cl /nologo /Zi /LD %src%\win32_base.c
|
||
|
|
||
|
|
||
|
REM: Build the executable; provide the base layer's load-time linking data via win32_base.lib
|
||
|
cl /nologo /Zi %src%\win32_main.c win32_base.lib
|
||
|
|
||
|
|
||
|
REM: Build the plugin as a .dll; provide the base layer's load-time linking data via win32_base.lib
|
||
|
cl /nologo /Zi /LD %src%\win32_plugin.c win32_base.lib
|
||
|
|