Previous 199869 Revisions Next

r44483 Monday 25th January, 2016 at 19:01:40 UTC by Miodrag Milanović
Added SteamLink initial support [Sam Lantiga, Miodrag Milanovic]
[/trunk]makefile
[scripts]genie.lua toolchain.lua

trunk/makefile
r252994r252995
11791179
11801180
11811181#-------------------------------------------------
1182# gmake-steamlink
1183#-------------------------------------------------
1184
1185$(PROJECTDIR)/gmake-steamlink/Makefile: makefile $(SCRIPTS) $(GENIE)
1186ifndef MARVELL_SDK_PATH
1187   $(error MARVELL_SDK_PATH is not set)
1188endif
1189ifndef MARVELL_ROOTFS
1190   $(error MARVELL_ROOTFS is not set)
1191endif
1192   $(SILENT) $(GENIE) $(PARAMS) --gcc=steamlink --gcc_version=$(GCC_VERSION) --USE_BGFX=0 --NO_OPENGL=1 --NO_USE_MIDI=1 --NO_X11=1 --NOASM=1 --SDL_INSTALL_ROOT=$(MARVELL_ROOTFS)/usr  gmake
1193
1194.PHONY: steamlink
1195ifndef MARVELL_SDK_PATH
1196   $(error MARVELL_SDK_PATH is not set)
1197endif
1198ifndef MARVELL_ROOTFS
1199   $(error MARVELL_ROOTFS is not set)
1200endif
1201steamlink: generate $(PROJECTDIR)/gmake-steamlink/Makefile
1202   $(SILENT) $(MAKE) $(MAKEPARAMS) -C $(PROJECTDIR)/gmake-steamlink config=$(CONFIG) precompile
1203   $(SILENT) $(MAKE) $(MAKEPARAMS) -C $(PROJECTDIR)/gmake-steamlink config=$(CONFIG)
1204
1205
1206
1207#-------------------------------------------------
11821208# cmake
11831209#-------------------------------------------------
11841210cmake: generate
trunk/scripts/genie.lua
r252994r252995
108108      { "os2",           "OS/2 eComStation"       },
109109      { "haiku",         "Haiku"                  },
110110      { "solaris",       "Solaris SunOS"          },
111      { "steamlink",     "Steam Link"             },
111112   },
112113}
113114
r252994r252995
10521053      end
10531054
10541055
1056
1057configuration { "steamlink" }
1058   links {
1059      "dl",
1060   }
1061   defines {
1062      "EGL_API_FB",
1063   }
1064
10551065configuration { "osx*" }
10561066      links {
10571067         "pthread",
trunk/scripts/toolchain.lua
r252994r252995
3232      { "qnx-arm",       "QNX/Blackberry - ARM"   },
3333      { "rpi",           "RaspberryPi"            },
3434      { "solaris",       "Solaris"                },
35      { "steamlink",       "Steam Link"             },
3536   },
3637}
3738
r252994r252995
189190         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux-clang")
190191      end
191192
193      if "steamlink" == _OPTIONS["gcc"] then
194         if not os.getenv("MARVELL_SDK_PATH") then
195            print("Set MARVELL_SDK_PATH envrionment variable.")
196         end
197         premake.gcc.cc  = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-gcc"
198         premake.gcc.cxx = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-g++"
199         premake.gcc.ar  = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-ar"
200         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-steamlink")
201      end
202
192203      if "mingw32-gcc" == _OPTIONS["gcc"] then
193         if not os.getenv("MINGW32") or not os.getenv("MINGW32") then
204         if not os.getenv("MINGW32") then
194205            print("Set MINGW32 envrionment variable.")
195206         end
196207         premake.gcc.cc  = "$(MINGW32)/bin/i686-w64-mingw32-gcc"
r252994r252995
207218      end
208219
209220      if "mingw64-gcc" == _OPTIONS["gcc"] then
210         if not os.getenv("MINGW64") or not os.getenv("MINGW64") then
221         if not os.getenv("MINGW64") then
211222            print("Set MINGW64 envrionment variable.")
212223         end
213224         premake.gcc.cc  = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc"
r252994r252995
483494   configuration { "x64", "mingw64-gcc", "Debug" }
484495      targetdir (_buildDir .. "mingw-gcc" .. "/bin/x64/Debug")
485496
497   configuration { "steamlink" }
498      objdir ( _buildDir .. "steamlink/obj")
499
500      buildoptions {
501         "-marm",
502         "-mfloat-abi=hard",
503         "--sysroot=$(MARVELL_SDK_PATH)/rootfs",
504      }
505      linkoptions {
506         "-static-libgcc",
507         "-static-libstdc++",
508         "--sysroot=$(MARVELL_SDK_PATH)/rootfs",
509      }
510
511   configuration { "steamlink", "Release" }
512      targetdir (_buildDir .. "steamlink/bin/Release")
513
514   configuration { "steamlink", "Debug" }
515      targetdir (_buildDir .. "steamlink/bin/Debug")
516
486517   configuration { "mingw-clang" }
487518      linkoptions {
488519         "-Wl,--allow-multiple-definition",
r252994r252995
496527      targetdir (_buildDir .. "mingw-clang/bin/x32/Release")
497528
498529   configuration { "x32", "mingw-clang", "Debug" }
499      targetdir (_buildDir .. "win32_mingw-clang/bin/x32/Debug")
530      targetdir (_buildDir .. "mingw-clang/bin/x32/Debug")
500531
501532   configuration { "x64", "mingw-clang" }
502533      objdir (_buildDir .. "mingw-clang/obj")


Previous 199869 Revisions Next


© 1997-2024 The MAME Team