Don't clobber variables that are already set, resulting in a broken build.
[WebKit-https.git] / WebCore / WebCore.pro
index fe59489521fef0473413b313495e6bd0b2595c18..f5f4efddac1e267f1eb86525db66e5e6c860ac0a 100644 (file)
@@ -36,11 +36,11 @@ freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
 DEFINES += BUILD_WEBKIT
 
 # Optional components (look for defs in config.h and included files!)
-DEFINES += ENABLE_ICONDATABASE=1
-DEFINES += ENABLE_XPATH=1
-DEFINES += ENABLE_XSLT=1
-#DEFINES += ENABLE_XBL=1
-qt-port:DEFINES += ENABLE_SVG=1
+!contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
+!contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
+!contains(DEFINES, ENABLE_XSLT=.): DEFINES += ENABLE_XSLT=1
+#!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
+qt-port: !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
 gdk-port:DEFINES += ENABLE_SVG=1
 
 DEFINES += WTF_CHANGES=1