Commit 0e92bb9 1 parent b9f6a2d commit 0e92bb9 Copy full SHA for 0e92bb9
File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -864,26 +864,26 @@ def configure_library(lib, output):
864
864
if getattr (options , shared_lib ):
865
865
(pkg_libs , pkg_cflags , pkg_libpath ) = pkg_config (lib )
866
866
867
- if pkg_cflags :
867
+ if options .__dict__ [shared_lib + '_includes' ]:
868
+ output ['include_dirs' ] += [options .__dict__ [shared_lib + '_includes' ]]
869
+ elif pkg_cflags :
868
870
output ['include_dirs' ] += (
869
871
filter (None , map (str .strip , pkg_cflags .split ('-I' ))))
870
- elif options .__dict__ [shared_lib + '_includes' ]:
871
- output ['include_dirs' ] += [options .__dict__ [shared_lib + '_includes' ]]
872
872
873
873
# libpath needs to be provided ahead libraries
874
- if pkg_libpath :
875
- output ['libraries' ] += [pkg_libpath ]
876
- elif options .__dict__ [shared_lib + '_libpath' ]:
874
+ if options .__dict__ [shared_lib + '_libpath' ]:
877
875
output ['libraries' ] += [
878
876
'-L%s' % options .__dict__ [shared_lib + '_libpath' ]]
877
+ elif pkg_libpath :
878
+ output ['libraries' ] += [pkg_libpath ]
879
879
880
880
default_libs = getattr (options , shared_lib + '_libname' )
881
881
default_libs = map ('-l{0}' .format , default_libs .split (',' ))
882
882
883
- if pkg_libs :
884
- output ['libraries' ] += pkg_libs .split ()
885
- elif default_libs :
883
+ if default_libs :
886
884
output ['libraries' ] += default_libs
885
+ elif pkg_libs :
886
+ output ['libraries' ] += pkg_libs .split ()
887
887
888
888
889
889
def configure_v8 (o ):
You can’t perform that action at this time.
0 commit comments