2017-05-20 17:11:53 +02:00
|
|
|
import SCons
|
|
|
|
|
2019-02-19 16:50:57 +01:00
|
|
|
|
2017-05-20 17:11:53 +02:00
|
|
|
def generate(env):
|
|
|
|
|
2020-01-07 19:48:42 +01:00
|
|
|
env["AR"] = "libtool"
|
|
|
|
env["ARCOM"] = "$AR -static -o $TARGET $ARFLAGS $SOURCES"
|
|
|
|
env["ARFLAGS"] = ["-s", "-no_warning_for_no_symbols"]
|
2017-05-20 17:11:53 +02:00
|
|
|
|
|
|
|
# Disable running ranlib, since we added 's' above
|
2020-01-07 19:48:42 +01:00
|
|
|
env["RANLIBCOM"] = ""
|
|
|
|
env["RANLIBCOMSTR"] = "Skipping ranlib for libtool generated target $TARGET"
|
2017-05-20 17:11:53 +02:00
|
|
|
|
2019-02-19 16:50:57 +01:00
|
|
|
|
2017-05-20 17:11:53 +02:00
|
|
|
def exists(env):
|
2020-01-07 19:48:42 +01:00
|
|
|
return env.detect("libtool")
|