CMakeLists.txt 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. set(SOURCES
  2. AST.cpp
  3. Bytecode/ASTCodegen.cpp
  4. Bytecode/BasicBlock.cpp
  5. Bytecode/Builtins.cpp
  6. Bytecode/CodeGenerationError.cpp
  7. Bytecode/Executable.cpp
  8. Bytecode/Generator.cpp
  9. Bytecode/IdentifierTable.cpp
  10. Bytecode/Instruction.cpp
  11. Bytecode/Interpreter.cpp
  12. Bytecode/RegexTable.cpp
  13. Bytecode/StringTable.cpp
  14. Console.cpp
  15. Contrib/Test262/262Object.cpp
  16. Contrib/Test262/AgentObject.cpp
  17. Contrib/Test262/GlobalObject.cpp
  18. Contrib/Test262/IsHTMLDDA.cpp
  19. CyclicModule.cpp
  20. Heap/BlockAllocator.cpp
  21. Heap/Cell.cpp
  22. Heap/CellAllocator.cpp
  23. Heap/ConservativeVector.cpp
  24. Heap/Handle.cpp
  25. Heap/Heap.cpp
  26. Heap/HeapBlock.cpp
  27. Heap/MarkedVector.cpp
  28. Lexer.cpp
  29. MarkupGenerator.cpp
  30. Module.cpp
  31. Parser.cpp
  32. ParserError.cpp
  33. Print.cpp
  34. Runtime/AbstractOperations.cpp
  35. Runtime/Accessor.cpp
  36. Runtime/Agent.cpp
  37. Runtime/AggregateError.cpp
  38. Runtime/AggregateErrorConstructor.cpp
  39. Runtime/AggregateErrorPrototype.cpp
  40. Runtime/ArgumentsObject.cpp
  41. Runtime/Array.cpp
  42. Runtime/ArrayBuffer.cpp
  43. Runtime/ArrayBufferConstructor.cpp
  44. Runtime/ArrayBufferPrototype.cpp
  45. Runtime/ArrayConstructor.cpp
  46. Runtime/ArrayIterator.cpp
  47. Runtime/ArrayIteratorPrototype.cpp
  48. Runtime/ArrayPrototype.cpp
  49. Runtime/AsyncFromSyncIterator.cpp
  50. Runtime/AsyncFromSyncIteratorPrototype.cpp
  51. Runtime/AsyncFunctionConstructor.cpp
  52. Runtime/AsyncFunctionDriverWrapper.cpp
  53. Runtime/AsyncFunctionPrototype.cpp
  54. Runtime/AsyncGenerator.cpp
  55. Runtime/AsyncGeneratorFunctionConstructor.cpp
  56. Runtime/AsyncGeneratorFunctionPrototype.cpp
  57. Runtime/AsyncGeneratorPrototype.cpp
  58. Runtime/AsyncIteratorPrototype.cpp
  59. Runtime/AtomicsObject.cpp
  60. Runtime/BigInt.cpp
  61. Runtime/BigIntConstructor.cpp
  62. Runtime/BigIntObject.cpp
  63. Runtime/BigIntPrototype.cpp
  64. Runtime/BooleanConstructor.cpp
  65. Runtime/BooleanObject.cpp
  66. Runtime/BooleanPrototype.cpp
  67. Runtime/BoundFunction.cpp
  68. Runtime/Completion.cpp
  69. Runtime/ConsoleObject.cpp
  70. Runtime/DataView.cpp
  71. Runtime/DataViewConstructor.cpp
  72. Runtime/DataViewPrototype.cpp
  73. Runtime/Date.cpp
  74. Runtime/DateConstructor.cpp
  75. Runtime/DatePrototype.cpp
  76. Runtime/DeclarativeEnvironment.cpp
  77. Runtime/DisposableStack.cpp
  78. Runtime/DisposableStackConstructor.cpp
  79. Runtime/DisposableStackPrototype.cpp
  80. Runtime/ECMAScriptFunctionObject.cpp
  81. Runtime/Environment.cpp
  82. Runtime/Error.cpp
  83. Runtime/ErrorConstructor.cpp
  84. Runtime/ErrorPrototype.cpp
  85. Runtime/ErrorTypes.cpp
  86. Runtime/ExecutionContext.cpp
  87. Runtime/FinalizationRegistry.cpp
  88. Runtime/FinalizationRegistryConstructor.cpp
  89. Runtime/FinalizationRegistryPrototype.cpp
  90. Runtime/FunctionConstructor.cpp
  91. Runtime/FunctionEnvironment.cpp
  92. Runtime/FunctionObject.cpp
  93. Runtime/FunctionPrototype.cpp
  94. Runtime/GeneratorFunctionConstructor.cpp
  95. Runtime/GeneratorFunctionPrototype.cpp
  96. Runtime/GeneratorObject.cpp
  97. Runtime/GeneratorPrototype.cpp
  98. Runtime/GlobalEnvironment.cpp
  99. Runtime/GlobalObject.cpp
  100. Runtime/IndexedProperties.cpp
  101. Runtime/Intl/AbstractOperations.cpp
  102. Runtime/Intl/Collator.cpp
  103. Runtime/Intl/CollatorCompareFunction.cpp
  104. Runtime/Intl/CollatorConstructor.cpp
  105. Runtime/Intl/CollatorPrototype.cpp
  106. Runtime/Intl/DateTimeFormat.cpp
  107. Runtime/Intl/DateTimeFormatConstructor.cpp
  108. Runtime/Intl/DateTimeFormatFunction.cpp
  109. Runtime/Intl/DateTimeFormatPrototype.cpp
  110. Runtime/Intl/DisplayNames.cpp
  111. Runtime/Intl/DisplayNamesConstructor.cpp
  112. Runtime/Intl/DisplayNamesPrototype.cpp
  113. Runtime/Intl/DurationFormat.cpp
  114. Runtime/Intl/DurationFormatConstructor.cpp
  115. Runtime/Intl/DurationFormatPrototype.cpp
  116. Runtime/Intl/Intl.cpp
  117. Runtime/Intl/ListFormat.cpp
  118. Runtime/Intl/ListFormatConstructor.cpp
  119. Runtime/Intl/ListFormatPrototype.cpp
  120. Runtime/Intl/Locale.cpp
  121. Runtime/Intl/LocaleConstructor.cpp
  122. Runtime/Intl/LocalePrototype.cpp
  123. Runtime/Intl/MathematicalValue.cpp
  124. Runtime/Intl/NumberFormat.cpp
  125. Runtime/Intl/NumberFormatConstructor.cpp
  126. Runtime/Intl/NumberFormatFunction.cpp
  127. Runtime/Intl/NumberFormatPrototype.cpp
  128. Runtime/Intl/PluralRules.cpp
  129. Runtime/Intl/PluralRulesConstructor.cpp
  130. Runtime/Intl/PluralRulesPrototype.cpp
  131. Runtime/Intl/RelativeTimeFormat.cpp
  132. Runtime/Intl/RelativeTimeFormatConstructor.cpp
  133. Runtime/Intl/RelativeTimeFormatPrototype.cpp
  134. Runtime/Intl/Segmenter.cpp
  135. Runtime/Intl/SegmenterConstructor.cpp
  136. Runtime/Intl/SegmenterPrototype.cpp
  137. Runtime/Intl/Segments.cpp
  138. Runtime/Intl/SegmentIterator.cpp
  139. Runtime/Intl/SegmentIteratorPrototype.cpp
  140. Runtime/Intl/SegmentsPrototype.cpp
  141. Runtime/Intrinsics.cpp
  142. Runtime/Iterator.cpp
  143. Runtime/IteratorConstructor.cpp
  144. Runtime/IteratorHelper.cpp
  145. Runtime/IteratorHelperPrototype.cpp
  146. Runtime/IteratorPrototype.cpp
  147. Runtime/JSONObject.cpp
  148. Runtime/JobCallback.cpp
  149. Runtime/Map.cpp
  150. Runtime/MapConstructor.cpp
  151. Runtime/MapIterator.cpp
  152. Runtime/MapIteratorPrototype.cpp
  153. Runtime/MapPrototype.cpp
  154. Runtime/MathObject.cpp
  155. Runtime/ModuleEnvironment.cpp
  156. Runtime/ModuleNamespaceObject.cpp
  157. Runtime/NativeFunction.cpp
  158. Runtime/NumberConstructor.cpp
  159. Runtime/NumberObject.cpp
  160. Runtime/NumberPrototype.cpp
  161. Runtime/Object.cpp
  162. Runtime/ObjectConstructor.cpp
  163. Runtime/ObjectEnvironment.cpp
  164. Runtime/ObjectPrototype.cpp
  165. Runtime/PrimitiveString.cpp
  166. Runtime/PrivateEnvironment.cpp
  167. Runtime/Promise.cpp
  168. Runtime/PromiseCapability.cpp
  169. Runtime/PromiseConstructor.cpp
  170. Runtime/PromiseJobs.cpp
  171. Runtime/PromisePrototype.cpp
  172. Runtime/PromiseReaction.cpp
  173. Runtime/PromiseResolvingElementFunctions.cpp
  174. Runtime/PromiseResolvingFunction.cpp
  175. Runtime/PropertyDescriptor.cpp
  176. Runtime/ProxyConstructor.cpp
  177. Runtime/ProxyObject.cpp
  178. Runtime/Realm.cpp
  179. Runtime/Reference.cpp
  180. Runtime/ReflectObject.cpp
  181. Runtime/RegExpConstructor.cpp
  182. Runtime/RegExpLegacyStaticProperties.cpp
  183. Runtime/RegExpObject.cpp
  184. Runtime/RegExpPrototype.cpp
  185. Runtime/RegExpStringIterator.cpp
  186. Runtime/RegExpStringIteratorPrototype.cpp
  187. Runtime/Set.cpp
  188. Runtime/SetConstructor.cpp
  189. Runtime/SetIterator.cpp
  190. Runtime/SetIteratorPrototype.cpp
  191. Runtime/SetPrototype.cpp
  192. Runtime/ShadowRealm.cpp
  193. Runtime/ShadowRealmConstructor.cpp
  194. Runtime/ShadowRealmPrototype.cpp
  195. Runtime/Shape.cpp
  196. Runtime/SharedArrayBufferConstructor.cpp
  197. Runtime/SharedArrayBufferPrototype.cpp
  198. Runtime/StringConstructor.cpp
  199. Runtime/StringIterator.cpp
  200. Runtime/StringIteratorPrototype.cpp
  201. Runtime/StringObject.cpp
  202. Runtime/StringPrototype.cpp
  203. Runtime/SuppressedError.cpp
  204. Runtime/SuppressedErrorConstructor.cpp
  205. Runtime/SuppressedErrorPrototype.cpp
  206. Runtime/Symbol.cpp
  207. Runtime/SymbolConstructor.cpp
  208. Runtime/SymbolObject.cpp
  209. Runtime/SymbolPrototype.cpp
  210. Runtime/Temporal/AbstractOperations.cpp
  211. Runtime/Temporal/Calendar.cpp
  212. Runtime/Temporal/CalendarConstructor.cpp
  213. Runtime/Temporal/CalendarPrototype.cpp
  214. Runtime/Temporal/Duration.cpp
  215. Runtime/Temporal/DurationConstructor.cpp
  216. Runtime/Temporal/DurationPrototype.cpp
  217. Runtime/Temporal/Instant.cpp
  218. Runtime/Temporal/InstantConstructor.cpp
  219. Runtime/Temporal/InstantPrototype.cpp
  220. Runtime/Temporal/ISO8601.cpp
  221. Runtime/Temporal/Now.cpp
  222. Runtime/Temporal/PlainDate.cpp
  223. Runtime/Temporal/PlainDateConstructor.cpp
  224. Runtime/Temporal/PlainDatePrototype.cpp
  225. Runtime/Temporal/PlainDateTime.cpp
  226. Runtime/Temporal/PlainDateTimeConstructor.cpp
  227. Runtime/Temporal/PlainDateTimePrototype.cpp
  228. Runtime/Temporal/PlainMonthDay.cpp
  229. Runtime/Temporal/PlainMonthDayConstructor.cpp
  230. Runtime/Temporal/PlainMonthDayPrototype.cpp
  231. Runtime/Temporal/PlainTime.cpp
  232. Runtime/Temporal/PlainTimeConstructor.cpp
  233. Runtime/Temporal/PlainTimePrototype.cpp
  234. Runtime/Temporal/PlainYearMonth.cpp
  235. Runtime/Temporal/PlainYearMonthConstructor.cpp
  236. Runtime/Temporal/PlainYearMonthPrototype.cpp
  237. Runtime/Temporal/Temporal.cpp
  238. Runtime/Temporal/TimeZone.cpp
  239. Runtime/Temporal/TimeZoneConstructor.cpp
  240. Runtime/Temporal/TimeZonePrototype.cpp
  241. Runtime/Temporal/ZonedDateTime.cpp
  242. Runtime/Temporal/ZonedDateTimeConstructor.cpp
  243. Runtime/Temporal/ZonedDateTimePrototype.cpp
  244. Runtime/TypedArray.cpp
  245. Runtime/TypedArrayConstructor.cpp
  246. Runtime/TypedArrayPrototype.cpp
  247. Runtime/Utf16String.cpp
  248. Runtime/Value.cpp
  249. Runtime/VM.cpp
  250. Runtime/WeakContainer.cpp
  251. Runtime/WeakMap.cpp
  252. Runtime/WeakMapConstructor.cpp
  253. Runtime/WeakMapPrototype.cpp
  254. Runtime/WeakRef.cpp
  255. Runtime/WeakRefConstructor.cpp
  256. Runtime/WeakRefPrototype.cpp
  257. Runtime/WeakSet.cpp
  258. Runtime/WeakSetConstructor.cpp
  259. Runtime/WeakSetPrototype.cpp
  260. Runtime/WrapForValidIteratorPrototype.cpp
  261. Runtime/WrappedFunction.cpp
  262. Script.cpp
  263. SourceCode.cpp
  264. SourceTextModule.cpp
  265. SyntaxHighlighter.cpp
  266. SyntheticModule.cpp
  267. Token.cpp
  268. )
  269. serenity_lib(LibJS js)
  270. target_link_libraries(LibJS PRIVATE LibCore LibCrypto LibFileSystem LibRegex LibSyntax LibLocale LibUnicode LibTimeZone)
  271. if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
  272. target_link_libraries(LibJS PRIVATE LibX86)
  273. endif()
  274. # TODO: This is probably also needed on RISC-V.
  275. if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i.86.*")
  276. target_link_libraries(LibJS PRIVATE atomic)
  277. endif()
  278. target_compile_options(LibJS PRIVATE -fno-omit-frame-pointer)