Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.5.0 nx #3

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ if(NX_WINDOWS)
ws2_32 userenv psapi winmm Iphlpapi
${CC_EXTERNAL_LIBS}
)

include(${CMAKE_CURRENT_LIST_DIR}/platform-nx/setup.cmake)
cc_win32_definations(cocos2d)
if(USE_MODULES)
Expand All @@ -2467,15 +2467,7 @@ if(NX_WINDOWS)
endif()
elseif(NX)
include(${CMAKE_CURRENT_LIST_DIR}/platform-nx/setup.cmake)
target_compile_definitions(cocos2d PUBLIC
CC_STATIC
NOMINMAX
_USE_MATH_DEFINES
_CRT_SECURE_NO_WARNINGS
_SCL_SECURE_NO_WARNINGS
_USRLIBSIMSTATIC
SE_ENABLE_INSPECTOR
)
nx_set_property(cocos2d)
elseif(WINDOWS)
target_link_libraries(cocos2d PUBLIC
ws2_32 userenv psapi winmm Iphlpapi
Expand Down