Skip to content

Commit

Permalink
Merge pull request #3 from oahcy/v3.5.0_nx
Browse files Browse the repository at this point in the history
V3.5.0 nx
  • Loading branch information
qiuguohua committed Apr 7, 2022
2 parents e063490 + 631d4a2 commit e9c1bec
Showing 1 changed file with 2 additions and 10 deletions.
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

0 comments on commit e9c1bec

Please sign in to comment.