|
|
@ -49,7 +49,8 @@ jobs:
|
|
|
|
shell: cmd
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd examples\example_null
|
|
|
|
cd examples\example_null
|
|
|
|
"%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 && .\build_win32.bat /W4
|
|
|
|
call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
|
|
|
|
.\build_win32.bat /W4
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build example_null (single file build)
|
|
|
|
- name: Build example_null (single file build)
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
@ -71,14 +72,14 @@ jobs:
|
|
|
|
- name: Build example_null (as DLL)
|
|
|
|
- name: Build example_null (as DLL)
|
|
|
|
shell: cmd
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
"%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
echo '#ifdef _EXPORT' > example_single_file.cpp
|
|
|
|
echo #ifdef _EXPORT > example_single_file.cpp
|
|
|
|
echo '# define IMGUI_API __declspec(dllexport)' >> example_single_file.cpp
|
|
|
|
echo # define IMGUI_API __declspec(dllexport) >> example_single_file.cpp
|
|
|
|
echo '#else' >> example_single_file.cpp
|
|
|
|
echo #else >> example_single_file.cpp
|
|
|
|
echo '# define IMGUI_API __declspec(dllimport)' >> example_single_file.cpp
|
|
|
|
echo # define IMGUI_API __declspec(dllimport) >> example_single_file.cpp
|
|
|
|
echo '#endif' >> example_single_file.cpp
|
|
|
|
echo #endif >> example_single_file.cpp
|
|
|
|
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
|
|
|
|
echo #define IMGUI_IMPLEMENTATION >> example_single_file.cpp
|
|
|
|
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
|
|
|
|
echo #include "misc/single_file/imgui_single_file.h" >> example_single_file.cpp
|
|
|
|
cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link
|
|
|
|
cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link
|
|
|
|
cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
|
|
|
|
cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
|
|
|
|
|
|
|
|
|
|
|
|