Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2013-01-29 19:04:11 +0400
committerJason Perkins <starkos@industriousone.com>2013-01-29 19:04:11 +0400
commit1ab1d57421cab892d5b41a4da4a277310e2dc297 (patch)
tree20933a9bf54fb27fbfe78f1eed184a8917eabea8 /tests
parent53b6b39a8d1db9b6cabaf190c326a42064217266 (diff)
Fix linking to external libraries outside of project folder
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/make/test_make_linking.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/actions/make/test_make_linking.lua b/tests/actions/make/test_make_linking.lua
index f9d9c5d..ef85353 100644
--- a/tests/actions/make/test_make_linking.lua
+++ b/tests/actions/make/test_make_linking.lua
@@ -106,3 +106,20 @@
]]
end
+
+--
+-- When referencing an external library via a path, the directory
+-- should be added to the library search paths, and the library
+-- itself included via an -l flag.
+--
+
+ function suite.onExternalLibraryWithPath()
+ location "MyProject"
+ links { "libs/SomeLib" }
+ prepare()
+ test.capture [[
+ ALL_LDFLAGS += $(LDFLAGS) -L../libs -s
+ LIBS += -lSomeLib
+ LDDEPS +=
+ ]]
+ end