|
|
1.1 root 1: set(SOURCES 1.1.1.6 ! root 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 1.1.1.4 root 8: utils.c video.c zip.c) 1.1 root 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 1.1.1.2 root 18: # and set the subsytem of the resulting .exe to "windows GUI" instead of "console" 1.1 root 19: if(WIN32) 20: set(GUIWIN_SOURCES gui-win/opencon.c) 1.1.1.4 root 21: set(GUIWIN_RES gui-win/previous-winicon.rc) 1.1.1.2 root 22: set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mwindows") 1.1 root 23: endif(WIN32) 24: 1.1.1.6 ! root 25: include_directories(${CMAKE_BINARY_DIR} includes debug softfloat cpu 1.1.1.5 root 26: dsp dimension slirp ${SDL2_INCLUDE_DIR}) 1.1 root 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: 1.1.1.6 ! root 36: if(PCAP_FOUND) ! 37: include_directories(${PCAP_INCLUDE_DIR}) ! 38: endif(PCAP_FOUND) 1.1 root 39: 1.1.1.6 ! root 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) 1.1 root 41: 42: add_subdirectory(debug) 1.1.1.5 root 43: add_subdirectory(softfloat) 1.1 root 44: add_subdirectory(gui-sdl) 1.1.1.6 ! root 45: add_subdirectory(cpu) 1.1.1.4 root 46: add_subdirectory(dsp) 47: add_subdirectory(dimension) 48: add_subdirectory(slirp) 1.1 root 49: 50: # When building for OSX, add specific sources 51: if(ENABLE_OSX_BUNDLE) 1.1.1.6 ! root 52: add_executable(Previous MACOSX_BUNDLE ${GUIOSX_RSRCS} ${SOURCES}) 1.1.1.4 root 53: set_target_properties(Previous PROPERTIES MACOSX_BUNDLE_INFO_PLIST 1.1 root 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: ) 1.1.1.4 root 65: add_dependencies(Previous osx_bundle_dirs) 1.1 root 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) 1.1.1.4 root 78: add_executable(Previous ${GUIWIN_RES} ${SOURCES} ${GUIWIN_SOURCES}) 1.1 root 79: 80: # Other targets, use default sources 81: else() 1.1.1.4 root 82: add_executable(Previous ${SOURCES}) 1.1 root 83: endif(ENABLE_OSX_BUNDLE) 84: 1.1.1.5 root 85: target_link_libraries(Previous Debug GuiSdl UaeCpu DSP Dimension Slirp SoftFloat ${SDL2_LIBRARY}) 1.1 root 86: 87: if(MATH_FOUND AND NOT APPLE) 1.1.1.4 root 88: target_link_libraries(Previous ${MATH_LIBRARY}) 1.1 root 89: endif() 90: 1.1.1.4 root 91: if(SDL2MAIN_LIBRARY) 92: target_link_libraries(Previous ${SDL2MAIN_LIBRARY}) 93: endif(SDL2MAIN_LIBRARY) 1.1 root 94: 95: if(READLINE_FOUND) 1.1.1.4 root 96: target_link_libraries(Previous ${READLINE_LIBRARY}) 1.1 root 97: endif(READLINE_FOUND) 98: 99: if(ZLIB_FOUND) 1.1.1.4 root 100: target_link_libraries(Previous ${ZLIB_LIBRARY}) 1.1 root 101: endif(ZLIB_FOUND) 102: 103: if(PNG_FOUND) 1.1.1.4 root 104: target_link_libraries(Previous ${PNG_LIBRARY}) 1.1 root 105: endif(PNG_FOUND) 106: 1.1.1.6 ! root 107: if(PCAP_FOUND) ! 108: target_link_libraries(Previous ${PCAP_LIBRARY}) ! 109: endif(PCAP_FOUND) 1.1 root 110: 111: if(WIN32) 112: # Needed for socket() on Windows 1.1.1.5 root 113: target_link_libraries(Previous ws2_32 Iphlpapi) 1.1 root 114: endif(WIN32) 115: 1.1.1.6 ! root 116: if(HAIKU) ! 117: # Needed for socket() on Haiku ! 118: target_link_libraries(Previous network) ! 119: endif(HAIKU) ! 120: 1.1 root 121: if(ENABLE_OSX_BUNDLE) 1.1.1.4 root 122: install(TARGETS Previous BUNDLE DESTINATION /Applications) 1.1 root 123: else() 1.1.1.4 root 124: install(TARGETS Previous RUNTIME DESTINATION ${BINDIR}) 125: install(FILES Previous-icon.bmp DESTINATION ${DATADIR}) 1.1.1.6 ! root 126: install(FILES ND_step1_v43_eeprom.bin DESTINATION ${BINDIR}) 1.1.1.5 root 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}) 1.1 root 130: endif(ENABLE_OSX_BUNDLE)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.