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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/actions/make/test_make_linking.lua')
-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