diff options
author | David Robillard <d@drobilla.net> | 2020-06-19 21:58:42 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-19 21:58:42 +0200 |
commit | 81babb758e614ae622b39849c0c65cf38505a912 (patch) | |
tree | 1422e73a702484fe0565d9d1791a57f3e281cae1 /wscript | |
parent | 1032bc5b7e875d67fe47d51e78e9e75c0eec8e3c (diff) | |
download | lilv-81babb758e614ae622b39849c0c65cf38505a912.tar.gz lilv-81babb758e614ae622b39849c0c65cf38505a912.tar.bz2 lilv-81babb758e614ae622b39849c0c65cf38505a912.zip |
Check for CreateSymbolicLink at configure time
This uses the system CreateSymbolicLink if it is available at compile time, and
if not, just acts as if the link failed (which is extremely likely anyway).
This removes the ugly wrapper code that has been a constant source of
compatibility headaches with weird toolchains.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -140,6 +140,14 @@ def configure(conf): lib = 'dl', mandatory = False) + if conf.env.DEST_OS == 'win32': + conf.check_function('c', 'CreateSymbolicLink', + header_name = ['windows.h'], + define_name = 'HAVE_CREATESYMBOLICLINK', + return_type = 'BOOLEAN', + arg_types = 'LPCSTR, LPCSTR, DWORD', + mandatory = False) + if Options.options.dyn_manifest: conf.define('LILV_DYN_MANIFEST', 1) |