|
|
1.1 ! root 1: set(SOURCES ! 2: adb.c audio.c bmap.c cfgopts.c configuration.c change.c cycInt.c ! 3: dialog.c dma.c esp.c enet_slirp.c enet_pcap.c ethernet.c file.c ! 4: floppy.c ioMem.c ioMemTabNEXT.c ioMemTabTurbo.c keymap.c kms.c ! 5: m68000.c main.c mo.c nbic.c NextBus.cpp nextMemory.c paths.c printer.c queue.c ! 6: ramdac.c reset.c rs.c rtcnvram.c scandir.c scc.c fast_screen.c host.c ! 7: scsi.c shortcut.c snd.c statusbar.c str.c sysReg.c tmc.c unzip.c ! 8: utils.c video.c zip.c) ! 9: ! 10: # When building for OSX, define specific sources for gui and ressources ! 11: if(ENABLE_OSX_BUNDLE) ! 12: set(GUIOSX_RSRCS ! 13: gui-osx/Previous.icns gui-osx/English.lproj gui-osx/French.lproj) ! 14: endif(ENABLE_OSX_BUNDLE) ! 15: ! 16: ! 17: # When building for Windows, define specific sources for gui and ressources ! 18: # and set the subsytem of the resulting .exe to "windows GUI" instead of "console" ! 19: if(WIN32) ! 20: set(GUIWIN_SOURCES gui-win/opencon.c) ! 21: set(GUIWIN_RES gui-win/previous-winicon.rc) ! 22: set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mwindows") ! 23: endif(WIN32) ! 24: ! 25: include_directories(${CMAKE_BINARY_DIR} includes debug softfloat cpu ! 26: dsp dimension slirp ${SDL2_INCLUDE_DIR}) ! 27: ! 28: if(ZLIB_FOUND) ! 29: include_directories(${ZLIB_INCLUDE_DIR}) ! 30: endif(ZLIB_FOUND) ! 31: ! 32: if(PNG_FOUND) ! 33: include_directories(${PNG_INCLUDE_DIR}) ! 34: endif(PNG_FOUND) ! 35: ! 36: if(PCAP_FOUND) ! 37: include_directories(${PCAP_INCLUDE_DIR}) ! 38: endif(PCAP_FOUND) ! 39: ! 40: link_directories(${CMAKE_CURRENT_BINARY_DIR}/debug ${CMAKE_CURRENT_BINARY_DIR}/softfloat ${CMAKE_CURRENT_BINARY_DIR}/gui-sdl ${CMAKE_CURRENT_BINARY_DIR}/cpu ${CMAKE_CURRENT_BINARY_DIR}/dsp ${CMAKE_CURRENT_BINARY_DIR}/dimension ${CMAKE_CURRENT_BINARY_DIR}/slirp) ! 41: ! 42: add_subdirectory(debug) ! 43: add_subdirectory(softfloat) ! 44: add_subdirectory(gui-sdl) ! 45: add_subdirectory(cpu) ! 46: add_subdirectory(dsp) ! 47: add_subdirectory(dimension) ! 48: add_subdirectory(slirp) ! 49: ! 50: # When building for OSX, add specific sources ! 51: if(ENABLE_OSX_BUNDLE) ! 52: add_executable(Previous MACOSX_BUNDLE ${GUIOSX_RSRCS} ${SOURCES}) ! 53: set_target_properties(Previous PROPERTIES MACOSX_BUNDLE_INFO_PLIST ! 54: ${CMAKE_CURRENT_SOURCE_DIR}/gui-osx/Info-Previous.plist) ! 55: set(MACOSX_BUNDLE_ICON_FILE Previous.icns) ! 56: # Create Previous.app bundle ! 57: add_custom_target(osx_bundle_dirs ! 58: COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/Previous.app/Contents/Resources ! 59: COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/Previous.app/Contents/MacOS ! 60: COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/gui-osx/${MACOSX_BUNDLE_ICON_FILE} ! 61: ${CMAKE_CURRENT_BINARY_DIR}/Previous.app/Contents/Resources/${MACOSX_BUNDLE_ICON_FILE} ! 62: # Copy Localized .nib to Bundle ! 63: COMMAND cp -R ${CMAKE_CURRENT_SOURCE_DIR}/gui-osx/*.lproj ${CMAKE_CURRENT_BINARY_DIR}/Previous.app/Contents/Resources/ ! 64: ) ! 65: add_dependencies(Previous osx_bundle_dirs) ! 66: set_source_files_properties(${GUIOSX_RSRCS} ! 67: PROPERTIES MACOSX_PACKAGE_LOCATION Resources) ! 68: ! 69: # When building for Windows, add specific sources + method to compile .rc files ! 70: elseif(WIN32) ! 71: # Set a default rc compiler if it was not defined yet ! 72: if(NOT CMAKE_RC_COMPILER) ! 73: set(CMAKE_RC_COMPILER windres) ! 74: endif(NOT CMAKE_RC_COMPILER) ! 75: ENABLE_LANGUAGE(RC) ! 76: set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -Ocoff -o <OBJECT> <SOURCE>") ! 77: set_source_files_properties(${GUIWIN_RES} PROPERTIES LANGUAGE RC) ! 78: add_executable(Previous ${GUIWIN_RES} ${SOURCES} ${GUIWIN_SOURCES}) ! 79: ! 80: # Other targets, use default sources ! 81: else() ! 82: add_executable(Previous ${SOURCES}) ! 83: endif(ENABLE_OSX_BUNDLE) ! 84: ! 85: target_link_libraries(Previous Debug GuiSdl UaeCpu DSP Dimension Slirp SoftFloat ${SDL2_LIBRARY}) ! 86: ! 87: if(MATH_FOUND AND NOT APPLE) ! 88: target_link_libraries(Previous ${MATH_LIBRARY}) ! 89: endif() ! 90: ! 91: if(SDL2MAIN_LIBRARY) ! 92: target_link_libraries(Previous ${SDL2MAIN_LIBRARY}) ! 93: endif(SDL2MAIN_LIBRARY) ! 94: ! 95: if(READLINE_FOUND) ! 96: target_link_libraries(Previous ${READLINE_LIBRARY}) ! 97: endif(READLINE_FOUND) ! 98: ! 99: if(ZLIB_FOUND) ! 100: target_link_libraries(Previous ${ZLIB_LIBRARY}) ! 101: endif(ZLIB_FOUND) ! 102: ! 103: if(PNG_FOUND) ! 104: target_link_libraries(Previous ${PNG_LIBRARY}) ! 105: endif(PNG_FOUND) ! 106: ! 107: if(PCAP_FOUND) ! 108: target_link_libraries(Previous ${PCAP_LIBRARY}) ! 109: endif(PCAP_FOUND) ! 110: ! 111: if(WIN32) ! 112: # Needed for socket() on Windows ! 113: target_link_libraries(Previous ws2_32 Iphlpapi) ! 114: endif(WIN32) ! 115: ! 116: if(HAIKU) ! 117: # Needed for socket() on Haiku ! 118: target_link_libraries(Previous network) ! 119: endif(HAIKU) ! 120: ! 121: if(ENABLE_OSX_BUNDLE) ! 122: install(TARGETS Previous BUNDLE DESTINATION /Applications) ! 123: else() ! 124: install(TARGETS Previous RUNTIME DESTINATION ${BINDIR}) ! 125: install(FILES Previous-icon.bmp DESTINATION ${DATADIR}) ! 126: install(FILES ND_step1_v43_eeprom.bin DESTINATION ${BINDIR}) ! 127: install(FILES Rev_1.0_v41.BIN DESTINATION ${BINDIR}) ! 128: install(FILES Rev_2.5_v66.BIN DESTINATION ${BINDIR}) ! 129: install(FILES Rev_3.3_v74.BIN DESTINATION ${BINDIR}) ! 130: endif(ENABLE_OSX_BUNDLE)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.