Skip to content

Commit

Permalink
CMake|Windows: API exports, running windeployqt, .pack output
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 22, 2015
1 parent 67a2369 commit 8057272
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/dehread/CMakeLists.txt
Expand Up @@ -5,4 +5,4 @@ include (../PluginConfig.cmake)
include_directories (include)
file (GLOB SOURCES src/*.cpp include/*.h)

deng_add_plugin (dehread ${SOURCES})
deng_add_plugin (dehread ${SOURCES} api/dpdehread.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/doom/CMakeLists.txt
Expand Up @@ -14,4 +14,4 @@ file (GLOB SOURCES src/*.c src/*.cpp include/*.h)

deng_find_resources (libdoom.pk3)

deng_add_plugin (doom ${SOURCES} ${COMMON_SOURCES})
deng_add_plugin (doom ${SOURCES} ${COMMON_SOURCES} api/doom.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/doom64/CMakeLists.txt
Expand Up @@ -14,4 +14,4 @@ file (GLOB SOURCES src/*.c src/*.cpp include/*.h)

deng_find_resources (libdoom64.pk3)

deng_add_plugin (doom64 ${SOURCES} ${COMMON_SOURCES})
deng_add_plugin (doom64 ${SOURCES} ${COMMON_SOURCES} api/doom64.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/example/CMakeLists.txt
Expand Up @@ -7,4 +7,4 @@ include (../PluginConfig.cmake)

include_directories (include)

deng_add_plugin (example src/example.c include/version.h)
deng_add_plugin (example src/example.c include/version.h api/example.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/fluidsynth/CMakeLists.txt
Expand Up @@ -110,7 +110,7 @@ append (CMAKE_CXX_FLAGS_DEBUG "-DDENG_DSFLUIDSYNTH_DEBUG")
include_directories (include)
file (GLOB src src/*.cpp include/*.h)

deng_add_plugin (${tgt} ${src} ${SOURCES})
deng_add_plugin (${tgt} ${src} ${SOURCES} api/dsfluidsynth.def)

# Additional compiler options.
if (DENG_FLUIDSYNTH_EMBEDDED)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/fmod/CMakeLists.txt
Expand Up @@ -18,7 +18,7 @@ if (TARGET fmodex)

include_directories (include)
file (GLOB SOURCES src/*.cpp include/*.h)
deng_add_plugin (audio_fmod ${SOURCES})
deng_add_plugin (audio_fmod ${SOURCES} api/dsfmod.def)
target_link_libraries (audio_fmod PRIVATE fmodex)

if (APPLE)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/heretic/CMakeLists.txt
Expand Up @@ -14,4 +14,4 @@ file (GLOB SOURCES src/*.c src/*.cpp include/*.h)

deng_find_resources (libheretic.pk3)

deng_add_plugin (heretic ${SOURCES} ${COMMON_SOURCES})
deng_add_plugin (heretic ${SOURCES} ${COMMON_SOURCES} api/heretic.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/hexen/CMakeLists.txt
Expand Up @@ -14,4 +14,4 @@ file (GLOB SOURCES src/*.c src/*.cpp include/*.h)

deng_find_resources (libhexen.pk3)

deng_add_plugin (hexen ${SOURCES} ${COMMON_SOURCES})
deng_add_plugin (hexen ${SOURCES} ${COMMON_SOURCES} api/hexen.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/idtech1converter/CMakeLists.txt
Expand Up @@ -7,4 +7,4 @@ append (CMAKE_CXX_FLAGS_DEBUG "-DDENG_IDTECH1CONVERTER_DEBUG")
include_directories (include)
file (GLOB SOURCES src/*.cpp include/*.h)

deng_add_plugin (idtech1converter ${SOURCES})
deng_add_plugin (idtech1converter ${SOURCES} api/dpidtech1converter.def)
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/openal/CMakeLists.txt
Expand Up @@ -22,6 +22,6 @@ if (OPENAL_FOUND)
include_directories (SYSTEM ${OPENAL_INCLUDE_DIR})

file (GLOB SOURCES src/*.cpp include/*.h)
deng_add_plugin (audio_openal ${SOURCES})
deng_add_plugin (audio_openal ${SOURCES} api/dsopenal.def)
target_link_libraries (audio_openal PRIVATE ${OPENAL_LIBRARY})
endif ()
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/savegameconverter/CMakeLists.txt
Expand Up @@ -5,4 +5,4 @@ include (../PluginConfig.cmake)
include_directories (include)
file (GLOB SOURCES src/*.cpp include/*.h)

deng_add_plugin (savegameconverter ${SOURCES})
deng_add_plugin (savegameconverter ${SOURCES} api/dpsavegameconverter.def)
2 changes: 1 addition & 1 deletion doomsday/build/scripts/buildpackage.py
Expand Up @@ -62,7 +62,7 @@ def descend(path):
pack.write(full, internal)

# Write it out.
print "Wrote %s (contains %i files)." % (outputName, len(pack.namelist()))
print "Wrote %s (contains %i files)." % (outputName.replace("\\", "/"), len(pack.namelist()))
pack.close()

if __name__ == "__main__":
Expand Down
10 changes: 7 additions & 3 deletions doomsday/cmake/Macros.cmake
Expand Up @@ -519,10 +519,14 @@ function (deng_install_deployqt target)
if (NOT WINDEPLOYQT_COMMAND)
message (FATAL_ERROR "windeployqt not available")
endif ()
set (script "${CMAKE_CURRENT_BINARY_DIR}/deploy-${target}.bat")
string (REPLACE "/" "\\" qtPath ${QT_PREFIX_DIR})
file (WRITE ${script} "
set PATH=${qtPath}\\bin
windeployqt --no-translations \"${CMAKE_INSTALL_PREFIX}/bin/${_outName}.exe\"
")
install (CODE "message (STATUS \"Running windeployqt on ${_outName}.exe...\")
execute_process (COMMAND ${WINDEPLOYQT_COMMAND} --no-translations
\"${CMAKE_INSTALL_PREFIX}/bin/${_outName}.exe\" )")
# OUTPUT_QUIET ERROR_QUIET)")
execute_process (COMMAND ${script} OUTPUT_QUIET ERROR_QUIET)")
endif ()
endfunction (deng_install_deployqt)

Expand Down
3 changes: 1 addition & 2 deletions doomsday/sdk/libgui/CMakeLists.txt
Expand Up @@ -40,8 +40,7 @@ list_remove_matches (SOURCES ".*/displaymode_.*")
if (NOT DENG_ENABLE_DISPLAYMODE)
list (APPEND SOURCES src/displaymode_dummy.cpp)
else ()
file (GLOB src src/displaymode_${DENG_PLATFORM_SUFFIX}.*)
list (APPEND SOURCES ${src})
list (APPEND SOURCES src/displaymode_${DENG_PLATFORM_SUFFIX})
endif ()

deng_add_library (libgui ${SOURCES} ${HEADERS})
Expand Down

0 comments on commit 8057272

Please sign in to comment.