Reviewed by Maciej
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2006 06:22:33 +0000 (06:22 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2006 06:22:33 +0000 (06:22 +0000)
Add QMake file

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12010 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/kjs.pro [new file with mode: 0644]

index c3063b5..db45305 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-12  George Staikos <staikos@kde.org>
+
+        Reviewed by Maciej
+
+        - Import initial QMake file.  Doesn't fully work yet.
+
 2006-01-11  Ricci Adams  <ricciadams@apple.com>
 
         Reviewed by Maciej and Darin, landed by Darin.
diff --git a/JavaScriptCore/kjs/kjs.pro b/JavaScriptCore/kjs/kjs.pro
new file mode 100644 (file)
index 0000000..7d37731
--- /dev/null
@@ -0,0 +1,70 @@
+LANGUAGE = C++
+TARGET = kjs
+TEMPLATE = lib
+CONFIG += qt warn_on debug static
+QT -= gui
+
+unix {
+       !system(which perl >/dev/null 2>&1):error("Build requires perl.")
+       !exists(lexer.lut.h):system(perl create_hash_table keywords.table -i >lexer.lut.h)
+       !exists(array_object.lut.h):system(perl create_hash_table array_object.cpp -i >array_object.lut.h)
+       !exists(math_object.lut.h):system(perl create_hash_table math_object.cpp -i >math_object.lut.h)
+       !exists(date_object.lut.h):system(perl create_hash_table date_object.cpp -i >date_object.lut.h)
+       !exists(number_object.lut.h):system(perl create_hash_table number_object.cpp -i >number_object.lut.h)
+       !exists(string_object.lut.h):system(perl create_hash_table string_object.cpp -i >string_object.lut.h)
+       !exists(regexp_object.lut.h):system(perl create_hash_table regexp_object.cpp -i >regexp_object.lut.h)
+}
+
+# QMakes YACC support is strange
+YACCSOURCES += grammar.y
+
+SOURCES        += \
+       ../kxmlcore/FastMalloc.cpp \
+       ../kxmlcore/TCSystemAlloc.cpp \
+       array_object.cpp \
+       function_object.cpp \
+       nodes2string.cpp \
+       reference.cpp \
+       bool_object.cpp \
+       identifier.cpp \
+       nodes.cpp \
+       reference_list.cpp \
+       collector.cpp \
+       internal.cpp \
+       number_object.cpp \
+       regexp.cpp \
+       date_object.cpp \
+       interpreter.cpp \
+       object.cpp \
+       regexp_object.cpp \
+       debugger.cpp \
+       object_object.cpp \
+       scope_chain.cpp \
+       dtoa.cpp \
+       lexer.cpp \
+       operations.cpp \
+       string_object.cpp \
+       error_object.cpp \
+       list.cpp \
+       property_map.cpp \
+       fpconst.cpp \
+       lookup.cpp \
+       property_slot.cpp \
+       ustring.cpp \
+       function.cpp \
+       math_object.cpp \
+       value.cpp
+
+!macx:unix {
+       INCLUDEPATH += .. ../pcre ../kxmlcore
+       MOC_DIR = .moc
+       OBJECTS_DIR = .obj
+       QMAKE_CXXFLAGS_DEBUG += -ansi
+}
+
+win32 {
+       INCLUDEPATH += .. ../pcre ../kxmlcore ../icu
+       QMAKE_CXXFLAGS_RELEASE += /Zm1000
+       QMAKE_CXXFLAGS_DEBUG += /Zm1000
+}
+