summaryrefslogtreecommitdiffstats
path: root/browser/components/build/moz.build
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-11 13:01:08 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-11 13:01:08 +0100
commite45706ca3acbb6530419433212becc61d5953a2d (patch)
tree09839ca2d524b28c1cdab2349bcdbd938668f139 /browser/components/build/moz.build
parent154d68048274383cbbff5412942ada5f88c152ca (diff)
downloadUXP-e45706ca3acbb6530419433212becc61d5953a2d.tar
UXP-e45706ca3acbb6530419433212becc61d5953a2d.tar.gz
UXP-e45706ca3acbb6530419433212becc61d5953a2d.tar.lz
UXP-e45706ca3acbb6530419433212becc61d5953a2d.tar.xz
UXP-e45706ca3acbb6530419433212becc61d5953a2d.zip
Un-fold browsercomps.* from libxul
This resolves #16.
Diffstat (limited to 'browser/components/build/moz.build')
-rw-r--r--browser/components/build/moz.build22
1 files changed, 20 insertions, 2 deletions
diff --git a/browser/components/build/moz.build b/browser/components/build/moz.build
index 8c99b74dd..622cf449c 100644
--- a/browser/components/build/moz.build
+++ b/browser/components/build/moz.build
@@ -12,8 +12,7 @@ SOURCES += [
'nsModule.cpp',
]
-Library('browsercomps')
-FINAL_LIBRARY = 'xul'
+XPCOMBinaryComponent('browsercomps')
LOCAL_INCLUDES += [
'../about',
@@ -22,3 +21,22 @@ LOCAL_INCLUDES += [
'../migration',
'../shell',
]
+
+if CONFIG['OS_ARCH'] == 'WINNT':
+ OS_LIBS += [
+ 'esent',
+ 'netapi32',
+ 'ole32',
+ 'shell32',
+ 'shlwapi',
+ 'version',
+ ]
+ DELAYLOAD_DLLS += [
+ 'esent.dll',
+ 'netapi32.dll',
+ ]
+
+# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
+# GTK2: Need to link with glib for GNOME shell service
+if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'gtk2', 'gtk3'):
+ OS_LIBS += CONFIG['TK_LIBS']