| 1 |
# JavaScriptCore - Qt4 build info |
| 2 |
VPATH += $$PWD |
| 3 |
|
| 4 |
CONFIG(standalone_package) { |
| 5 |
isEmpty(JSC_GENERATED_SOURCES_DIR):JSC_GENERATED_SOURCES_DIR = $$PWD/generated |
| 6 |
} else { |
| 7 |
isEmpty(JSC_GENERATED_SOURCES_DIR):JSC_GENERATED_SOURCES_DIR = generated |
| 8 |
} |
| 9 |
|
| 10 |
CONFIG(debug, debug|release) { |
| 11 |
OBJECTS_DIR = obj/debug |
| 12 |
} else { # Release |
| 13 |
OBJECTS_DIR = obj/release |
| 14 |
} |
| 15 |
|
| 16 |
INCLUDEPATH = \ |
| 17 |
$$PWD \ |
| 18 |
$$PWD/.. \ |
| 19 |
$$PWD/assembler \ |
| 20 |
$$PWD/bytecode \ |
| 21 |
$$PWD/bytecompiler \ |
| 22 |
$$PWD/debugger \ |
| 23 |
$$PWD/interpreter \ |
| 24 |
$$PWD/jit \ |
| 25 |
$$PWD/parser \ |
| 26 |
$$PWD/pcre \ |
| 27 |
$$PWD/profiler \ |
| 28 |
$$PWD/runtime \ |
| 29 |
$$PWD/wrec \ |
| 30 |
$$PWD/wtf \ |
| 31 |
$$PWD/wtf/symbian \ |
| 32 |
$$PWD/wtf/unicode \ |
| 33 |
$$PWD/yarr \ |
| 34 |
$$PWD/API \ |
| 35 |
$$PWD/ForwardingHeaders \ |
| 36 |
$$JSC_GENERATED_SOURCES_DIR \ |
| 37 |
$$INCLUDEPATH |
| 38 |
|
| 39 |
DEFINES += BUILDING_QT__ BUILDING_JavaScriptCore BUILDING_WTF |
| 40 |
|
| 41 |
win32-* { |
| 42 |
# Prevent definition of min, max macros in windows.h |
| 43 |
DEFINES+=NOMINMAX |
| 44 |
# Enables rand_s |
| 45 |
msvc: DEFINES += _CRT_RAND_S |
| 46 |
LIBS_PRIVATE += -lwinmm |
| 47 |
} |
| 48 |
contains(JAVASCRIPTCORE_JIT,yes) { |
| 49 |
DEFINES+=ENABLE_JIT=1 |
| 50 |
DEFINES+=ENABLE_YARR_JIT=1 |
| 51 |
DEFINES+=ENABLE_YARR=1 |
| 52 |
} |
| 53 |
contains(JAVASCRIPTCORE_JIT,no) { |
| 54 |
DEFINES+=ENABLE_JIT=0 |
| 55 |
DEFINES+=ENABLE_YARR_JIT=0 |
| 56 |
DEFINES+=ENABLE_YARR=0 |
| 57 |
} |
| 58 |
|
| 59 |
# YARR_JIT has known issues on mingw 64 bit, see QTBUG-40814 |
| 60 |
mingw:equals(QT_ARCH, x86_64): DEFINES+=ENABLE_YARR_JIT=0 |
| 61 |
|
| 62 |
# Rules when JIT enabled (not disabled) |
| 63 |
!contains(DEFINES, ENABLE_JIT=0) { |
| 64 |
linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) { |
| 65 |
QMAKE_CXXFLAGS += -fno-stack-protector |
| 66 |
QMAKE_CFLAGS += -fno-stack-protector |
| 67 |
} |
| 68 |
} |
| 69 |
|
| 70 |
include(pcre/pcre.pri) |
| 71 |
|
| 72 |
SOURCES += \ |
| 73 |
API/JSBase.cpp \ |
| 74 |
API/JSCallbackConstructor.cpp \ |
| 75 |
API/JSCallbackFunction.cpp \ |
| 76 |
API/JSCallbackObject.cpp \ |
| 77 |
API/JSClassRef.cpp \ |
| 78 |
API/JSContextRef.cpp \ |
| 79 |
API/JSObjectRef.cpp \ |
| 80 |
API/JSStringRef.cpp \ |
| 81 |
API/JSValueRef.cpp \ |
| 82 |
API/OpaqueJSString.cpp \ |
| 83 |
assembler/ARMAssembler.cpp \ |
| 84 |
assembler/MacroAssemblerARM.cpp \ |
| 85 |
bytecode/CodeBlock.cpp \ |
| 86 |
bytecode/JumpTable.cpp \ |
| 87 |
bytecode/Opcode.cpp \ |
| 88 |
bytecode/SamplingTool.cpp \ |
| 89 |
bytecode/StructureStubInfo.cpp \ |
| 90 |
bytecompiler/BytecodeGenerator.cpp \ |
| 91 |
bytecompiler/NodesCodegen.cpp \ |
| 92 |
debugger/DebuggerActivation.cpp \ |
| 93 |
debugger/DebuggerCallFrame.cpp \ |
| 94 |
debugger/Debugger.cpp \ |
| 95 |
interpreter/CallFrame.cpp \ |
| 96 |
interpreter/Interpreter.cpp \ |
| 97 |
interpreter/RegisterFile.cpp \ |
| 98 |
jit/ExecutableAllocatorFixedVMPool.cpp \ |
| 99 |
jit/ExecutableAllocatorPosix.cpp \ |
| 100 |
jit/ExecutableAllocatorSymbian.cpp \ |
| 101 |
jit/ExecutableAllocatorWin.cpp \ |
| 102 |
jit/ExecutableAllocator.cpp \ |
| 103 |
jit/JITArithmetic.cpp \ |
| 104 |
jit/JITCall.cpp \ |
| 105 |
jit/JIT.cpp \ |
| 106 |
jit/JITOpcodes.cpp \ |
| 107 |
jit/JITPropertyAccess.cpp \ |
| 108 |
jit/JITStubs.cpp \ |
| 109 |
parser/Lexer.cpp \ |
| 110 |
parser/Nodes.cpp \ |
| 111 |
parser/ParserArena.cpp \ |
| 112 |
parser/Parser.cpp \ |
| 113 |
profiler/Profile.cpp \ |
| 114 |
profiler/ProfileGenerator.cpp \ |
| 115 |
profiler/ProfileNode.cpp \ |
| 116 |
profiler/Profiler.cpp \ |
| 117 |
runtime/ArgList.cpp \ |
| 118 |
runtime/Arguments.cpp \ |
| 119 |
runtime/ArrayConstructor.cpp \ |
| 120 |
runtime/ArrayPrototype.cpp \ |
| 121 |
runtime/BooleanConstructor.cpp \ |
| 122 |
runtime/BooleanObject.cpp \ |
| 123 |
runtime/BooleanPrototype.cpp \ |
| 124 |
runtime/CallData.cpp \ |
| 125 |
runtime/Collector.cpp \ |
| 126 |
runtime/CommonIdentifiers.cpp \ |
| 127 |
runtime/Completion.cpp \ |
| 128 |
runtime/ConstructData.cpp \ |
| 129 |
runtime/DateConstructor.cpp \ |
| 130 |
runtime/DateConversion.cpp \ |
| 131 |
runtime/DateInstance.cpp \ |
| 132 |
runtime/DatePrototype.cpp \ |
| 133 |
runtime/ErrorConstructor.cpp \ |
| 134 |
runtime/Error.cpp \ |
| 135 |
runtime/ErrorInstance.cpp \ |
| 136 |
runtime/ErrorPrototype.cpp \ |
| 137 |
runtime/ExceptionHelpers.cpp \ |
| 138 |
runtime/Executable.cpp \ |
| 139 |
runtime/FunctionConstructor.cpp \ |
| 140 |
runtime/FunctionPrototype.cpp \ |
| 141 |
runtime/GetterSetter.cpp \ |
| 142 |
runtime/GlobalEvalFunction.cpp \ |
| 143 |
runtime/Identifier.cpp \ |
| 144 |
runtime/InitializeThreading.cpp \ |
| 145 |
runtime/InternalFunction.cpp \ |
| 146 |
runtime/JSActivation.cpp \ |
| 147 |
runtime/JSAPIValueWrapper.cpp \ |
| 148 |
runtime/JSArray.cpp \ |
| 149 |
runtime/JSByteArray.cpp \ |
| 150 |
runtime/JSCell.cpp \ |
| 151 |
runtime/JSFunction.cpp \ |
| 152 |
runtime/JSGlobalData.cpp \ |
| 153 |
runtime/JSGlobalObject.cpp \ |
| 154 |
runtime/JSGlobalObjectFunctions.cpp \ |
| 155 |
runtime/JSImmediate.cpp \ |
| 156 |
runtime/JSLock.cpp \ |
| 157 |
runtime/JSNotAnObject.cpp \ |
| 158 |
runtime/JSNumberCell.cpp \ |
| 159 |
runtime/JSObject.cpp \ |
| 160 |
runtime/JSONObject.cpp \ |
| 161 |
runtime/JSPropertyNameIterator.cpp \ |
| 162 |
runtime/JSStaticScopeObject.cpp \ |
| 163 |
runtime/JSString.cpp \ |
| 164 |
runtime/JSValue.cpp \ |
| 165 |
runtime/JSVariableObject.cpp \ |
| 166 |
runtime/JSWrapperObject.cpp \ |
| 167 |
runtime/LiteralParser.cpp \ |
| 168 |
runtime/Lookup.cpp \ |
| 169 |
runtime/MarkStackPosix.cpp \ |
| 170 |
runtime/MarkStackSymbian.cpp \ |
| 171 |
runtime/MarkStackWin.cpp \ |
| 172 |
runtime/MarkStack.cpp \ |
| 173 |
runtime/MathObject.cpp \ |
| 174 |
runtime/NativeErrorConstructor.cpp \ |
| 175 |
runtime/NativeErrorPrototype.cpp \ |
| 176 |
runtime/NumberConstructor.cpp \ |
| 177 |
runtime/NumberObject.cpp \ |
| 178 |
runtime/NumberPrototype.cpp \ |
| 179 |
runtime/ObjectConstructor.cpp \ |
| 180 |
runtime/ObjectPrototype.cpp \ |
| 181 |
runtime/Operations.cpp \ |
| 182 |
runtime/PropertyDescriptor.cpp \ |
| 183 |
runtime/PropertyNameArray.cpp \ |
| 184 |
runtime/PropertySlot.cpp \ |
| 185 |
runtime/PrototypeFunction.cpp \ |
| 186 |
runtime/RegExpConstructor.cpp \ |
| 187 |
runtime/RegExp.cpp \ |
| 188 |
runtime/RegExpObject.cpp \ |
| 189 |
runtime/RegExpPrototype.cpp \ |
| 190 |
runtime/ScopeChain.cpp \ |
| 191 |
runtime/SmallStrings.cpp \ |
| 192 |
runtime/StringConstructor.cpp \ |
| 193 |
runtime/StringObject.cpp \ |
| 194 |
runtime/StringPrototype.cpp \ |
| 195 |
runtime/StructureChain.cpp \ |
| 196 |
runtime/Structure.cpp \ |
| 197 |
runtime/TimeoutChecker.cpp \ |
| 198 |
runtime/UString.cpp \ |
| 199 |
runtime/UStringImpl.cpp \ |
| 200 |
wtf/Assertions.cpp \ |
| 201 |
wtf/ByteArray.cpp \ |
| 202 |
wtf/CurrentTime.cpp \ |
| 203 |
wtf/DateMath.cpp \ |
| 204 |
wtf/dtoa.cpp \ |
| 205 |
wtf/FastMalloc.cpp \ |
| 206 |
wtf/HashTable.cpp \ |
| 207 |
wtf/MainThread.cpp \ |
| 208 |
wtf/qt/MainThreadQt.cpp \ |
| 209 |
wtf/qt/ThreadingQt.cpp \ |
| 210 |
wtf/RandomNumber.cpp \ |
| 211 |
wtf/RefCountedLeakCounter.cpp \ |
| 212 |
wtf/symbian/BlockAllocatorSymbian.cpp \ |
| 213 |
wtf/symbian/RegisterFileAllocatorSymbian.cpp \ |
| 214 |
wtf/ThreadingNone.cpp \ |
| 215 |
wtf/Threading.cpp \ |
| 216 |
wtf/TypeTraits.cpp \ |
| 217 |
wtf/unicode/CollatorDefault.cpp \ |
| 218 |
wtf/unicode/icu/CollatorICU.cpp \ |
| 219 |
wtf/unicode/UTF8.cpp \ |
| 220 |
yarr/RegexCompiler.cpp \ |
| 221 |
yarr/RegexInterpreter.cpp \ |
| 222 |
yarr/RegexJIT.cpp |
| 223 |
|
| 224 |
# Generated files, simply list them for JavaScriptCore |
| 225 |
SOURCES += \ |
| 226 |
$${JSC_GENERATED_SOURCES_DIR}/Grammar.cpp |
| 227 |
|
| 228 |
!contains(DEFINES, USE_SYSTEM_MALLOC) { |
| 229 |
SOURCES += wtf/TCSystemAlloc.cpp |
| 230 |
} |
| 231 |
|