summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/lib.lua
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2015-05-31 13:20:42 +0200
committer Olivier Galibert <galibert@pobox.com>2015-05-31 13:25:17 +0200
commit511762fa2d25965d05fc277efd29fb4a50d95420 (patch)
tree09211cade5deaa068d2e2603ba93c4ca4d8b6951 /scripts/src/lib.lua
parent3a9d6f4b4be4bed19720eea2cffab021139bd241 (diff)
Allow compiling with shared libraries [O. Galibert]
Put SHLIB=1 in the main makefile, or on the command line. The idea is to get a *way* faster link with symbols. It works at least on linux, with one annoying caveat: you have to be in the build/projects/sdl/mame/gmake-linux directory to start mame afterwards. We're going to move some things around to be able to use LD_LIBRARY_PATH or have it start as-is from the root.
Diffstat (limited to 'scripts/src/lib.lua')
-rw-r--r--scripts/src/lib.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/src/lib.lua b/scripts/src/lib.lua
index 6eca056a87f..e24ff00f438 100644
--- a/scripts/src/lib.lua
+++ b/scripts/src/lib.lua
@@ -2,8 +2,9 @@
-- copyright-holders:MAMEdev Team
project "utils"
+ targetsubdir(_OPTIONS["target"] .."_" .. _OPTIONS["subtarget"])
uuid "22489ad0-4cb2-4d91-ad81-24b0d80ca30a"
- kind "StaticLib"
+ kind (LIBTYPE)
options {
"ForceCPP",
@@ -94,8 +95,9 @@ project "utils"
project "formats"
+ targetsubdir(_OPTIONS["target"] .."_" .. _OPTIONS["subtarget"])
uuid "f69636b1-fcce-45ce-b09a-113e371a2d7a"
- kind "StaticLib"
+ kind (LIBTYPE)
options {
"ForceCPP",