|
|
@@ -17,7 +17,7 @@ if (EMSCRIPTEN) #don't need SDL2
|
|
|
else()
|
|
|
if(WIN32)
|
|
|
set(ENV{SDL2DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../SDL/include)
|
|
|
- set(CORE_LIBS ${CORE_LIBS} SDL2main SDL2)
|
|
|
+ set(CORE_LIBS ${CORE_LIBS} SDL2 SDL2main)
|
|
|
else(WIN32)
|
|
|
find_package(CURL)
|
|
|
endif()
|
|
|
@@ -94,7 +94,7 @@ endif()
|
|
|
if (OX_HAVE_LIBPNG)
|
|
|
set(OX_DEFINITIONS ${OX_DEFINITIONS}
|
|
|
-DOX_HAVE_LIBPNG)
|
|
|
- if (MSVC)
|
|
|
+ if ((MSVC) OR (MINGW))
|
|
|
include_directories(${THIRD_PARTY}/libpng)
|
|
|
set(LIBPNG ${libprefix}png)
|
|
|
if (MSVC_VERSION EQUAL "1900")
|
|
|
@@ -103,7 +103,6 @@ if (OX_HAVE_LIBPNG)
|
|
|
set(CORE_LIBS ${CORE_LIBS} ${LIBPNG})
|
|
|
elseif(EMSCRIPTEN)
|
|
|
include_directories(${THIRD_PARTY}/libpng)
|
|
|
- set(LIBPNG ${libprefix}png)
|
|
|
set(LIBPNG libz libpng16)
|
|
|
set(CORE_LIBS ${CORE_LIBS} ${LIBPNG})
|
|
|
else()
|
|
|
@@ -194,14 +193,9 @@ if (FORCE_GLES)
|
|
|
endif(FORCE_GLES)
|
|
|
|
|
|
|
|
|
-if (MINGW)
|
|
|
- set(CORE_LIBS ${CORE_LIBS} mingw32)
|
|
|
-endif(MINGW)
|
|
|
-
|
|
|
-
|
|
|
-set(CORE_LIBS
|
|
|
- ${CORE_LIBS}
|
|
|
+set(CORE_LIBS
|
|
|
oxygine-framework
|
|
|
+ ${CORE_LIBS}
|
|
|
${OPENGL_LIBRARIES}
|
|
|
)
|
|
|
|
|
|
@@ -237,6 +231,10 @@ if (NOT MSVC)
|
|
|
endif(NOT MSVC)
|
|
|
|
|
|
|
|
|
+if (MINGW)
|
|
|
+ set(CORE_LIBS mingw32 ${CORE_LIBS})
|
|
|
+endif(MINGW)
|
|
|
+
|
|
|
add_definitions(${OX_DEFINITIONS})
|
|
|
include_directories(${OXYGINE_INCLUDE_DIRS})
|
|
|
add_library(oxygine-framework STATIC ${SOURCES})
|