mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
CI: Fixed dllimport/dllexport tests. (#8757)
This commit is contained in:
parent
8c61ee5498
commit
8ccfdf7ba0
2 changed files with 7 additions and 14 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
|
@ -51,15 +51,11 @@ jobs:
|
||||||
- name: Build example_null (mingw 64-bit, as DLL)
|
- name: Build example_null (mingw 64-bit, as DLL)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
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 '# define IMGUI_API __declspec(dllimport)' >> 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
|
||||||
g++ -I. -Wall -Wformat -D_EXPORT -shared -o libimgui.dll -Wl,--out-implib,libimgui.a example_single_file.cpp -limm32
|
g++ -I. -Wall -Wformat -shared -o libimgui.dll -Wl,--out-implib,libimgui.a example_single_file.cpp -limm32
|
||||||
g++ -I. -Wall -Wformat -o example_null.exe examples/example_null/main.cpp -L. -limgui
|
g++ -I. -Wall -Wformat -DIMGUI_API='__declspec(dllimport)' -o example_null.exe examples/example_null/main.cpp -L. -limgui
|
||||||
rm -f example_null.exe libimgui.* example_single_file.*
|
rm -f example_null.exe libimgui.* example_single_file.*
|
||||||
|
|
||||||
- name: Build example_null (extra warnings, msvc 64-bit)
|
- name: Build example_null (extra warnings, msvc 64-bit)
|
||||||
|
|
@ -99,16 +95,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
|
call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
|
||||||
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 # define IMGUI_API __declspec(dllimport) >> 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 /I. example_single_file.cpp /LD /FeImGui.dll /link
|
||||||
cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
|
cl.exe /DIMGUI_API=__declspec(dllimport) /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
|
||||||
|
|
||||||
- name: Build Win32 example_glfw_opengl2
|
- name: Build Win32 example_glfw_opengl2
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ Other changes:
|
||||||
- Textures: Fixed support for `#define ImTextureID_Invalid` to non-zero value:
|
- Textures: Fixed support for `#define ImTextureID_Invalid` to non-zero value:
|
||||||
ImTextureData() was incorrectly cleared with zeroes. (#8745) [@rachit7645]
|
ImTextureData() was incorrectly cleared with zeroes. (#8745) [@rachit7645]
|
||||||
- Demo: Added "Text -> Font Size" demo section. (#8738) [@Demonese]
|
- Demo: Added "Text -> Font Size" demo section. (#8738) [@Demonese]
|
||||||
|
- CI: Fixed dllimport/dllexport tests. (#8757) [@AidanSun05]
|
||||||
- Backends: SDL3: avoid calling SDL_StartTextInput() again if already active.
|
- Backends: SDL3: avoid calling SDL_StartTextInput() again if already active.
|
||||||
(#8727) [@morrazzzz]
|
(#8727) [@morrazzzz]
|
||||||
- Backends: OSX: added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress
|
- Backends: OSX: added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue