Previous 199869 Revisions Next

r36781 Sunday 29th March, 2015 at 20:50:55 UTC by Couriersud
Fix compile. (nw)
[scripts]genie.lua
[scripts/src/osd]sdl.lua sdl_cfg.lua windows.lua windows_cfg.lua

trunk/scripts/genie.lua
r245292r245293
726726
727727configuration { "osx*" }
728728      links {
729         "SDL2.framework",
729730         "Cocoa.framework",
730731         "OpenGL.framework",
731732         "CoreAudio.framework",
732733         "CoreMIDI.framework",
733         "SDL2.framework",
734734         "pthread",
735735      }
736      buildoptions {
737         "-F/Library/Frameworks/",
738      }
739      linkoptions {
740         "-F/Library/Frameworks/",
741      }
736742
737743
738744configuration { "mingw*" }
739      defines {
740         "main=utf8_main",
741      }
742745      linkoptions {
743746         "-static-libgcc",
744747         "-static-libstdc++",
745         "-municode",
746748      }
747749if _OPTIONS["osd"]=="sdl" then
748750      links {
r245292r245293
770772
771773configuration { "vs*" }
772774      defines {
773         "main=utf8_main",
774      }
775      defines {
776775         "XML_STATIC",
777776         "WIN32",
778777         "_WIN32",
trunk/scripts/src/osd/sdl.lua
r245292r245293
11function maintargetosdoptions(_target)
2   if (USE_QT == 1) then
3      if _OPTIONS["targetos"]=="windows" then
2   if _OPTIONS["targetos"]=="windows" then
3      linkoptions{
4         "-municode",
5      }
6      if (USE_QT == 1) then
47         linkoptions{
58            "-L$(shell qmake -query QT_INSTALL_LIBS)",
69         }
7
810         links {
911            "qtmain",
1012            "QtGui4",
1113            "QtCore4",
1214         }
1315      end
14
15      if _OPTIONS["targetos"]=="linux" then
16   end
17   if _OPTIONS["targetos"]=="linux" then
18      if (USE_QT == 1) then
1619         links {
17            'QtGui',
18            'QtCore',
20            "QtGui",
21            "QtCore",
1922         }
2023
2124         linkoptions {
22            '$(shell pkg-config --libs QtGui)',
25            "$(shell pkg-config --libs QtGui)",
2326         }
2427      end
2528   end
r245292r245293
3033   configuration { }
3134end
3235
36
3337configuration { "mingw*" }
3438      linkoptions {
3539         "-Wl,--allow-multiple-definition",
trunk/scripts/src/osd/sdl_cfg.lua
r245292r245293
1313      "USE_OPENGL=1",
1414      "USE_QTDEBUG=" .. USE_QT,
1515      "SDLMAME_NET_PCAP",
16      "main=utf8_main",
1617   }
1718
1819   buildoptions {
trunk/scripts/src/osd/windows.lua
r245292r245293
11function maintargetosdoptions(_target)
2   linkoptions {
3      "-municode",
4   }
5
26   local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
37
48   if os.isfile(rcfile) then
trunk/scripts/src/osd/windows_cfg.lua
r245292r245293
1212   "USE_DISPATCH_GL=1",
1313   "DIRECTINPUT_VERSION=0x0800",
1414   "SDLMAME_NET_PCAP",
15   "main=utf8_main",
1516}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team