haikuwebkit/Source/CMakeLists.txt

54 lines
1.1 KiB
CMake
Raw Permalink Normal View History

# -----------------------------------------------------------------------------
# Add module directories
# -----------------------------------------------------------------------------
if (NOT USE_SYSTEM_MALLOC)
Progress towards CMake on Windows and Mac. https://bugs.webkit.org/show_bug.cgi?id=143293 Reviewed by Filip Pizlo. .: * CMakeLists.txt: Set DERIVED_SOURCES_WTF_DIR for Windows. * Source/CMakeLists.txt: Don't compile bmalloc on Windows. * Source/cmake/OptionsCommon.cmake: Use the absolute path of the C preprocessor. * Source/cmake/OptionsWinCairo.cmake: Added needed definitions. * Source/cmake/OptionsWindows.cmake: Set some default values and removed support for old Visual Studio versions before /MP. * Source/cmake/WebKitFS.cmake: Make WTF DerivedSources directory. * Source/cmake/WebKitMacros.cmake: Added ADD_PRECOMPILED_HEADER macro based on http://stackoverflow.com/questions/148570/using-pre-compiled-headers-with-cmake Source/bmalloc: * bmalloc/BAssert.h: Removed ellipses from macros to appease Visual Studio. Source/JavaScriptCore: * CMakeLists.txt: Enabled using assembly on Windows. Replaced unix commands with CMake commands. * PlatformMac.cmake: Tell open source builders where to find unicode headers. Source/ThirdParty/ANGLE: * include/GLES2/gl2.h: Temporarily disabled WebGL on Windows CMake builds. Source/WebCore: * PlatformMac.cmake: Tell open source builders where to find unicode headers. * PlatformWin.cmake: Include PlatformWinCairo.cmake. * PlatformWinCairo.cmake: Added from bug 115944 by Patrick Gansterer. * bindings/js/JSDOMStringListCustom.cpp: * bindings/js/JSDOMWrapper.cpp: * bindings/js/JSMessageChannelCustom.cpp: * bindings/js/JSPopStateEventCustom.cpp: * bindings/js/JSReadableStreamCustom.cpp: * bindings/js/ReadableStreamJSSource.cpp: * bindings/js/ScriptController.cpp: * css/CSSComputedStyleDeclaration.cpp: * dom/Attr.cpp: * dom/CollectionIndexCache.cpp: * platform/graphics/ANGLEWebKitBridge.h: Fixed include quirks. Source/WebKit: * PlatformMac.cmake: Fixed some include directories. Source/WTF: * wtf/CMakeLists.txt: Don't use bmalloc on Windows yet. * wtf/FeatureDefines.h: Temporarily disabled WebGL on Windows CMake builds. * wtf/PlatformMac.cmake: Tell open source builders where to find unicode headers. Canonical link: https://commits.webkit.org/161340@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-04-01 18:36:43 +00:00
add_subdirectory(bmalloc)
endif ()
2015-02-11 12:15:23 +00:00
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
add_subdirectory(WTF)
[JSC][GTK][JSCONLY] Use capstone disassembler https://bugs.webkit.org/show_bug.cgi?id=185283 Reviewed by Michael Catanzaro. .: * Source/CMakeLists.txt: * Source/cmake/FindLLVM.cmake: Removed. * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsJSCOnly.cmake: * Source/cmake/OptionsWPE.cmake: Source/JavaScriptCore: Instead of adding MIPS disassembler baked by ourselves, we import capstone disassembler. And use capstone disassembler for MIPS, ARM, and ARMv7 in GTK, WPE, WinCairo and JSCOnly ports. And we remove ARM LLVM disassembler. Capstone is licensed under 3-clause BSD, which is acceptable in WebKit tree. * CMakeLists.txt: * Sources.txt: * disassembler/ARMLLVMDisassembler.cpp: Removed. * disassembler/CapstoneDisassembler.cpp: Added. (JSC::tryToDisassemble): Source/ThirdParty: Add capstone to ThirdParty. We build capstone as a static library, and link it against JSC. We only build disassembler for target architecture. So for MIPS target, we only enable MIPS part of capstone. We also remove unnecessary architectures in capstone, XCore, PowerPC, SystemZ, etc. This is simply done by deleting these architecture directories. We pick "next" branch instead of "master" branch since "next" branch is actively developed. * capstone/CMakeLists.txt: Added. * capstone/Source/.appveyor.yml: Added. * capstone/Source/.gitattributes: Added. * capstone/Source/.gitignore: Added. * capstone/Source/.travis.yml: Added. * capstone/Source/CMakeLists.txt: Added. * capstone/Source/COMPILE.TXT: Added. * capstone/Source/COMPILE_CMAKE.TXT: Added. * capstone/Source/COMPILE_MSVC.TXT: Added. * capstone/Source/CREDITS.TXT: Added. * capstone/Source/ChangeLog-capstone: Added. * capstone/Source/HACK.TXT: Added. * capstone/Source/LEB128.h: Added. (decodeULEB128): * capstone/Source/LICENSE.TXT: Added. * capstone/Source/LICENSE_LLVM.TXT: Added. * capstone/Source/MCDisassembler.h: Added. * capstone/Source/MCFixedLenDisassembler.h: Added. * capstone/Source/MCInst.c: Added. (MCInst_Init): (MCInst_clear): (MCInst_insert0): (MCInst_setOpcode): (MCInst_setOpcodePub): (MCInst_getOpcode): (MCInst_getOpcodePub): (MCInst_getOperand): (MCInst_getNumOperands): (MCInst_addOperand2): (MCOperand_Init): (MCOperand_isValid): (MCOperand_isReg): (MCOperand_isImm): (MCOperand_isFPImm): (MCOperand_getReg): (MCOperand_setReg): (MCOperand_getImm): (MCOperand_setImm): (MCOperand_getFPImm): (MCOperand_setFPImm): (MCOperand_CreateReg1): (MCOperand_CreateReg0): (MCOperand_CreateImm1): (MCOperand_CreateImm0): * capstone/Source/MCInst.h: Added. * capstone/Source/MCInstrDesc.c: Added. (MCOperandInfo_isPredicate): (MCOperandInfo_isOptionalDef): * capstone/Source/MCInstrDesc.h: Added. * capstone/Source/MCRegisterInfo.c: Added. (MCRegisterInfo_InitMCRegisterInfo): (DiffListIterator_init): (DiffListIterator_getVal): (DiffListIterator_next): (DiffListIterator_isValid): (MCRegisterInfo_getMatchingSuperReg): (MCRegisterInfo_getSubReg): (MCRegisterInfo_getRegClass): (MCRegisterClass_contains): * capstone/Source/MCRegisterInfo.h: Added. * capstone/Source/Makefile: Added. * capstone/Source/MathExtras.h: Added. (Hi_32): (Lo_32): (isUIntN): (isMask_32): (isMask_64): (isShiftedMask_32): (isShiftedMask_64): (isPowerOf2_32): (CountLeadingZeros_32): (CountLeadingOnes_32): (CountLeadingZeros_64): (CountLeadingOnes_64): (CountTrailingZeros_32): (CountTrailingOnes_32): (CountTrailingZeros_64): (CountTrailingOnes_64): (CountPopulation_32): (CountPopulation_64): (Log2_32): (Log2_64): (Log2_32_Ceil): (Log2_64_Ceil): (GreatestCommonDivisor64): (BitsToDouble): (BitsToFloat): (DoubleToBits): (FloatToBits): (MinAlign): (NextPowerOf2): (RoundUpToAlignment): (OffsetToAlignment): (abs64): (SignExtend32): (SignExtend64): (countLeadingZeros): * capstone/Source/README.md: Added. * capstone/Source/RELEASE_NOTES: Added. * capstone/Source/SStream.c: Added. (SStream_Init): (SStream_concat0): (SStream_concat): (printInt64Bang): (printUInt64Bang): (printInt64): (printInt32BangDec): (printInt32Bang): (printInt32): (printUInt32Bang): (printUInt32): * capstone/Source/SStream.h: Added. * capstone/Source/TODO: Added. * capstone/Source/arch/ARM/ARMAddressingModes.h: Added. (ARM_AM_getAddrOpcStr): (ARM_AM_getShiftOpcStr): (ARM_AM_getShiftOpcEncoding): (ARM_AM_getAMSubModeStr): (rotr32): (rotl32): (getSORegOpc): (getSORegOffset): (ARM_AM_getSORegShOp): (getSOImmValImm): (getSOImmValRot): (getSOImmValRotate): (getSOImmVal): (isSOImmTwoPartVal): (getSOImmTwoPartFirst): (getSOImmTwoPartSecond): (getThumbImmValShift): (isThumbImmShiftedVal): (getThumbImm16ValShift): (isThumbImm16ShiftedVal): (getThumbImmNonShiftedVal): (getT2SOImmValSplatVal): (getT2SOImmValRotateVal): (getT2SOImmVal): (getT2SOImmValRotate): (isT2SOImmTwoPartVal): (getT2SOImmTwoPartFirst): (getT2SOImmTwoPartSecond): (ARM_AM_getAM2Opc): (getAM2Offset): (getAM2Op): (getAM2ShiftOpc): (getAM2IdxMode): (getAM3Opc): (getAM3Offset): (getAM3Op): (getAM3IdxMode): (getAM4SubMode): (getAM4ModeImm): (ARM_AM_getAM5Opc): (ARM_AM_getAM5Offset): (ARM_AM_getAM5Op): (createNEONModImm): (getNEONModImmOpCmode): (getNEONModImmVal): (ARM_AM_decodeNEONModImm): (getFPImmFloat): * capstone/Source/arch/ARM/ARMBaseInfo.h: Added. (ARMCC_getOppositeCondition): (ARMCC_ARMCondCodeToString): (ARM_PROC_IFlagsToString): (ARM_PROC_IModToString): (ARM_MB_MemBOptToString): (ARM_ISB_InstSyncBOptToString): (isARMLowRegister): (ARMII_AddrModeToString): * capstone/Source/arch/ARM/ARMDisassembler.c: Added. (ITStatus_push_back): (ITStatus_instrInITBlock): (ITStatus_instrLastInITBlock): (ITStatus_getITCC): (ITStatus_advanceITState): (ITStatus_setITState): (Check): (ARM_getFeatureBits): (DecodePredicateOperand): (ARM_init): (checkDecodedInstruction): (_ARM_getInstruction): (AddThumb1SBit): (AddThumbPredicate): (UpdateThumbVFPPredicate): (_Thumb_getInstruction): (Thumb_getInstruction): (ARM_getInstruction): (DecodeGPRnopcRegisterClass): (DecodeGPRwithAPSRRegisterClass): (DecodetGPRRegisterClass): (DecodetcGPRRegisterClass): (DecoderGPRRegisterClass): (DecodeDPRRegisterClass): (DecodeDPR_8RegisterClass): (DecodeDPR_VFP2RegisterClass): (DecodeDPairRegisterClass): (DecodeCCOutOperand): (DecodeSORegImmOperand): (DecodeSORegRegOperand): (DecodeRegListOperand): (DecodeSPRRegListOperand): (DecodeDPRRegListOperand): (DecodeBitfieldMaskOperand): (DecodeCopMemInstruction): (DecodeAddrMode2IdxInstruction): (DecodeSORegMemOperand): (DecodeAddrMode3Instruction): (DecodeRFEInstruction): (DecodeQADDInstruction): (DecodeMemMultipleWritebackInstruction): (DecodeCPSInstruction): (DecodeT2CPSInstruction): (DecodeT2MOVTWInstruction): (DecodeArmMOVTWInstruction): (DecodeSMLAInstruction): (DecodeAddrModeImm12Operand): (DecodeAddrMode5Operand): (DecodeAddrMode7Operand): (DecodeT2BInstruction): (DecodeBranchImmInstruction): (DecodeAddrMode6Operand): (DecodeVLDInstruction): (DecodeVLDST1Instruction): (DecodeVLDST2Instruction): (DecodeVLDST3Instruction): (DecodeVLDST4Instruction): (DecodeVSTInstruction): (DecodeVLD1DupInstruction): (DecodeVLD2DupInstruction): (DecodeVLD3DupInstruction): (DecodeVLD4DupInstruction): (DecodeNEONModImmInstruction): (DecodeVSHLMaxInstruction): (DecodeShiftRight8Imm): (DecodeShiftRight16Imm): (DecodeShiftRight32Imm): (DecodeShiftRight64Imm): (DecodeTBLInstruction): (DecodeThumbAddSpecialReg): (DecodeThumbBROperand): (DecodeT2BROperand): (DecodeThumbCmpBROperand): (DecodeThumbAddrModeRR): (DecodeThumbAddrModeIS): (DecodeThumbAddrModePC): (DecodeThumbAddrModeSP): (DecodeT2AddrModeSOReg): (DecodeT2LoadShift): (DecodeT2LoadImm8): (DecodeT2LoadImm12): (DecodeT2LoadT): (DecodeT2LoadLabel): (DecodeT2Imm8S4): (DecodeT2AddrModeImm8s4): (DecodeT2AddrModeImm0_1020s4): (DecodeT2Imm8): (DecodeT2AddrModeImm8): (DecodeT2LdStPre): (DecodeT2AddrModeImm12): (DecodeThumbAddSPImm): (DecodeThumbAddSPReg): (DecodeThumbCPS): (DecodePostIdxReg): (DecodeThumbBLXOffset): (DecodeCoprocessor): (DecodeThumbTableBranch): (DecodeThumb2BCCInstruction): (DecodeT2SOImm): (DecodeThumbBCCTargetOperand): (DecodeThumbBLTargetOperand): (DecodeMemBarrierOption): (DecodeInstSyncBarrierOption): (DecodeMSRMask): (DecodeBankedReg): (DecodeDoubleRegLoad): (DecodeDoubleRegStore): (DecodeLDRPreImm): (DecodeLDRPreReg): (DecodeSTRPreImm): (DecodeSTRPreReg): (DecodeVLD1LN): (DecodeVST1LN): (DecodeVLD2LN): (DecodeVST2LN): (DecodeVLD3LN): (DecodeVST3LN): (DecodeVLD4LN): (DecodeVST4LN): (DecodeVMOVSRR): (DecodeVMOVRRS): (DecodeIT): (DecodeT2LDRDPreInstruction): (DecodeT2STRDPreInstruction): (DecodeT2Adr): (DecodeT2ShifterImmOperand): (DecodeSwap): (DecodeVCVTD): (DecodeVCVTQ): (DecodeLDR): (DecodeMRRC2): * capstone/Source/arch/ARM/ARMDisassembler.h: Added. * capstone/Source/arch/ARM/ARMGenAsmWriter.inc: Added. * capstone/Source/arch/ARM/ARMGenDisassemblerTables.inc: Added. * capstone/Source/arch/ARM/ARMGenInstrInfo.inc: Added. * capstone/Source/arch/ARM/ARMGenRegisterInfo.inc: Added. * capstone/Source/arch/ARM/ARMGenSubtargetInfo.inc: Added. * capstone/Source/arch/ARM/ARMInstPrinter.c: Added. (get_op_access): (set_mem_access): (op_addImm): (ARM_getRegName): (translateShiftImm): (printRegImmShift): (printRegName): (ARM_printInst): (printOperand): (printThumbLdrLabelOperand): (printSORegRegOperand): (printSORegImmOperand): (printAM2PreOrOffsetIndexOp): (printAddrModeTBB): (printAddrModeTBH): (printAddrMode2Operand): (printAddrMode2OffsetOperand): (printAM3PreOrOffsetIndexOp): (printAddrMode3Operand): (printAddrMode3OffsetOperand): (printPostIdxImm8Operand): (printPostIdxRegOperand): (printPostIdxImm8s4Operand): (printAddrMode5Operand): (printAddrMode6Operand): (printAddrMode7Operand): (printAddrMode6OffsetOperand): (printBitfieldInvMaskImmOperand): (printMemBOption): (printInstSyncBOption): (printShiftImmOperand): (printPKHLSLShiftImm): (printPKHASRShiftImm): (printRegisterList): (printGPRPairOperand): (printSetendOperand): (printCPSIMod): (printCPSIFlag): (printMSRMaskOperand): (printBankedRegOperand): (printPredicateOperand): (printMandatoryPredicateOperand): (printSBitModifierOperand): (printNoHashImmediate): (printPImmediate): (printCImmediate): (printCoprocOptionImm): (printAdrLabelOperand): (printThumbS4ImmOperand): (printThumbSRImm): (printThumbITMask): (printThumbAddrModeRROperand): (printThumbAddrModeImm5SOperand): (printThumbAddrModeImm5S1Operand): (printThumbAddrModeImm5S2Operand): (printThumbAddrModeImm5S4Operand): (printThumbAddrModeSPOperand): (printT2SOOperand): (printAddrModeImm12Operand): (printT2AddrModeImm8Operand): (printT2AddrModeImm8s4Operand): (printT2AddrModeImm0_1020s4Operand): (printT2AddrModeImm8OffsetOperand): (printT2AddrModeImm8s4OffsetOperand): (printT2AddrModeSoRegOperand): (printFPImmOperand): (printNEONModImmOperand): (printImmPlusOneOperand): (printRotImmOperand): (printModImmOperand): (printFBits16): (printFBits32): (printVectorIndex): (printVectorListOne): (printVectorListTwo): (printVectorListTwoSpaced): (printVectorListThree): (printVectorListFour): (printVectorListOneAllLanes): (printVectorListTwoAllLanes): (printVectorListThreeAllLanes): (printVectorListFourAllLanes): (printVectorListTwoSpacedAllLanes): (printVectorListThreeSpacedAllLanes): (printVectorListFourSpacedAllLanes): (printVectorListThreeSpaced): (printVectorListFourSpaced): (ARM_addVectorDataType): (ARM_addVectorDataSize): (ARM_addReg): (ARM_addUserMode): (ARM_addSysReg): * capstone/Source/arch/ARM/ARMInstPrinter.h: Added. * capstone/Source/arch/ARM/ARMMapping.c: Added. (ARM_reg_name2): (ARM_insn_name): (ARM_rel_branch): (ARM_blx_to_arm_mode): (ARM_reg_access): * capstone/Source/arch/ARM/ARMMapping.h: Added. * capstone/Source/arch/ARM/ARMMappingInsn.inc: Added. * capstone/Source/arch/ARM/ARMMappingInsnOp.inc: Added. * capstone/Source/arch/ARM/ARMModule.c: Added. (init): (option): (ARM_enable): * capstone/Source/arch/Mips/MipsDisassembler.c: Added. (getFeatureBits): (Mips_init): (readInstruction16): (readInstruction32): (MipsDisassembler_getInstruction): (Mips_getInstruction): (getReg): (DecodeINSVE_DF_4): (DecodeAddiGroupBranch_4): (DecodeDaddiGroupBranch_4): (DecodeBlezlGroupBranch_4): (DecodeBgtzlGroupBranch_4): (DecodeBgtzGroupBranch_4): (DecodeBlezGroupBranch_4): (DecodeCPU16RegsRegisterClass): (DecodeGPR64RegisterClass): (DecodeGPRMM16RegisterClass): (DecodeGPRMM16ZeroRegisterClass): (DecodeGPRMM16MovePRegisterClass): (DecodeGPR32RegisterClass): (DecodePtrRegisterClass): (DecodeDSPRRegisterClass): (DecodeFGR64RegisterClass): (DecodeFGR32RegisterClass): (DecodeCCRRegisterClass): (DecodeFCCRegisterClass): (DecodeCCRegisterClass): (DecodeFGRCCRegisterClass): (DecodeMem): (DecodeCacheOp): (DecodeCacheOpMM): (DecodeCacheOpR6): (DecodeSyncI): (DecodeMSA128Mem): (DecodeMemMMImm4): (DecodeMemMMSPImm5Lsl2): (DecodeMemMMGPImm7Lsl2): (DecodeMemMMReglistImm4Lsl2): (DecodeMemMMImm12): (DecodeMemMMImm16): (DecodeFMem): (DecodeFMem2): (DecodeFMem3): (DecodeFMemCop2R6): (DecodeSpecial3LlSc): (DecodeHWRegsRegisterClass): (DecodeAFGR64RegisterClass): (DecodeACC64DSPRegisterClass): (DecodeHI32DSPRegisterClass): (DecodeLO32DSPRegisterClass): (DecodeMSA128BRegisterClass): (DecodeMSA128HRegisterClass): (DecodeMSA128WRegisterClass): (DecodeMSA128DRegisterClass): (DecodeMSACtrlRegisterClass): (DecodeCOP2RegisterClass): (DecodeBranchTarget): (DecodeJumpTarget): (DecodeBranchTarget21): (DecodeBranchTarget26): (DecodeBranchTarget7MM): (DecodeBranchTarget10MM): (DecodeBranchTargetMM): (DecodeJumpTargetMM): (DecodeAddiur2Simm7): (DecodeUImm6Lsl2): (DecodeLiSimm7): (DecodeSimm4): (DecodeSimm16): (DecodeLSAImm): (DecodeInsSize): (DecodeExtSize): (DecodeSimm19Lsl2): (DecodeSimm18Lsl3): (DecodeSimm9SP): (DecodeANDI16Imm): (DecodeUImm5lsl2): (DecodeRegListOperand): (DecodeRegListOperand16): (DecodeMovePRegPair): (DecodeSimm23Lsl2): * capstone/Source/arch/Mips/MipsDisassembler.h: Added. * capstone/Source/arch/Mips/MipsGenAsmWriter.inc: Added. * capstone/Source/arch/Mips/MipsGenDisassemblerTables.inc: Added. * capstone/Source/arch/Mips/MipsGenInstrInfo.inc: Added. * capstone/Source/arch/Mips/MipsGenRegisterInfo.inc: Added. * capstone/Source/arch/Mips/MipsGenSubtargetInfo.inc: Added. * capstone/Source/arch/Mips/MipsInstPrinter.c: Added. (set_mem_access): (isReg): (MipsFCCToString): (printRegName): (Mips_printInst): (printOperand): (printUnsignedImm): (printUnsignedImm8): (printMemOperand): (printMemOperandEA): (printFCCOperand): (printRegisterPair): (printAlias1): (printAlias2): (printAlias): (printRegisterList): * capstone/Source/arch/Mips/MipsInstPrinter.h: Added. * capstone/Source/arch/Mips/MipsMapping.c: Added. (Mips_get_insn_id): (Mips_group_name): (Mips_map_insn): (Mips_map_register): * capstone/Source/arch/Mips/MipsMapping.h: Added. * capstone/Source/arch/Mips/MipsMappingInsn.inc: Added. * capstone/Source/arch/Mips/MipsModule.c: Added. (init): (option): (Mips_enable): * capstone/Source/capstone.pc.in: Added. * capstone/Source/config.mk: Added. * capstone/Source/cs.c: Added. (cs_kern_os_calloc): (cs_version): (cs_support): (cs_errno): (cs_strerror): (cs_open): (cs_close): (fill_insn): (skipdata_size): (cs_option): (skipdata_opstr): (cs_disasm): (cs_disasm_ex): (cs_free): (cs_malloc): (cs_disasm_iter): (cs_reg_name): (cs_insn_name): (cs_group_name): (cs_insn_group): (cs_reg_read): (cs_reg_write): (cs_op_count): (cs_op_index): (cs_regs_access): * capstone/Source/cs_priv.h: Added. * capstone/Source/functions.mk: Added. * capstone/Source/include/capstone/arm.h: Added. * capstone/Source/include/capstone/arm64.h: Added. * capstone/Source/include/capstone/capstone.h: Added. * capstone/Source/include/capstone/evm.h: Added. * capstone/Source/include/capstone/m680x.h: Added. * capstone/Source/include/capstone/m68k.h: Added. * capstone/Source/include/capstone/mips.h: Added. * capstone/Source/include/capstone/platform.h: Added. * capstone/Source/include/capstone/ppc.h: Added. * capstone/Source/include/capstone/sparc.h: Added. * capstone/Source/include/capstone/systemz.h: Added. * capstone/Source/include/capstone/tms320c64x.h: Added. * capstone/Source/include/capstone/x86.h: Added. * capstone/Source/include/capstone/xcore.h: Added. * capstone/Source/include/windowsce/intrin.h: Added. * capstone/Source/include/windowsce/stdint.h: Added. * capstone/Source/make.sh: Added. * capstone/Source/nmake-x86.bat: Added. * capstone/Source/nmake.bat: Added. * capstone/Source/pkgconfig.mk: Added. * capstone/Source/utils.c: Added. (make_id2insn): (insn_find): (name2id): (id2name): (count_positive): (count_positive8): (cs_strdup): (cs_snprintf): (arr_exist8): (arr_exist): * capstone/Source/utils.h: Added. * capstone/capstone-Revision.txt: Added. Source/WTF: Add USE_CAPSTONE used for MIPS and ARM. * wtf/Platform.h: Tools: * gtk/manifest.txt.in: * wpe/manifest.txt.in: Canonical link: https://commits.webkit.org/200942@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-09 11:42:09 +00:00
if (USE_CAPSTONE)
add_subdirectory(ThirdParty/capstone)
endif ()
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
add_subdirectory(JavaScriptCore)
if (ENABLE_WEBGL OR USE_ANGLE_EGL)
add_subdirectory(ThirdParty/ANGLE)
endif ()
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
if (ENABLE_API_TESTS)
add_subdirectory(ThirdParty/gtest)
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
endif ()
[GTK] Add MIMETypeRegistry implementation using xdgmime and remove the GTK+ one https://bugs.webkit.org/show_bug.cgi?id=170001 Reviewed by Michael Catanzaro. .: * Source/CMakeLists.txt: Compile xdgmime if USE_XDGMIME is ON. * Source/cmake/OptionsGTK.cmake: Set USE_XDGMIME to ON. Source/ThirdParty: Add xdgmime to ThirdParty. * xdgmime/CMakeLists.txt: Added. * xdgmime/README: Added. * xdgmime/README.webkit: Added. * xdgmime/src/xdgmime.c: Added. * xdgmime/src/xdgmime.h: Added. * xdgmime/src/xdgmimealias.c: Added. * xdgmime/src/xdgmimealias.h: Added. * xdgmime/src/xdgmimecache.c: Added. * xdgmime/src/xdgmimecache.h: Added. * xdgmime/src/xdgmimeglob.c: Added. * xdgmime/src/xdgmimeglob.h: Added. * xdgmime/src/xdgmimeicon.c: Added. * xdgmime/src/xdgmimeicon.h: Added. * xdgmime/src/xdgmimeint.c: Added. * xdgmime/src/xdgmimeint.h: Added. * xdgmime/src/xdgmimemagic.c: Added. * xdgmime/src/xdgmimemagic.h: Added. * xdgmime/src/xdgmimeparent.c: Added. * xdgmime/src/xdgmimeparent.h: Added. Source/WebCore: The XDG implementation could be used by any port where shared-mime-info is expected to be available. It also improves the current GTK+ implementation that is based on a very small map of mime types and extensions. * CMakeLists.txt: * PlatformGTK.cmake: * platform/xdg/MIMETypeRegistryXdg.cpp: Renamed from Source/WebCore/platform/gtk/MIMETypeRegistryGtk.cpp. (WebCore::MIMETypeRegistry::getMIMETypeForExtension): (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType): Tools: Ignore style of xdgmime sources. * Scripts/webkitpy/tool/steps/checkstyle.py: LayoutTests: Remove platform specific expectations of two test because now we do the same as other wk2 ports. * platform/gtk/TestExpectations: Canonical link: https://commits.webkit.org/186963@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-24 08:21:21 +00:00
if (USE_XDGMIME)
add_subdirectory(ThirdParty/xdgmime)
endif ()
[GTK] Make libwebrtc backend buildable for GTK port https://bugs.webkit.org/show_bug.cgi?id=178860 Patch by Alejandro G. Castro <alex@igalia.com> on 2018-04-02 Reviewed by Youenn Fablet. .: * Source/CMakeLists.txt: Add the libwebrtc directory to the compilation. * Source/cmake/OptionsGTK.cmake: Add the USE_LIBWEBRTC option to allow compilation of the specific code. Source/ThirdParty/libwebrtc: Modified the cmake file and added some assembly code to the boringssl compilation required for the linux compilation generated by libwebrtc. * CMakeLists.txt: This cmake file was unused so we have modified it completely to make it work for our port. It was originally generated from the libwebrtc json file but not anymore. We could change its structure at some point but current one seems a good option for the moment. * Source/webrtc/base/task_queue_libevent.cc: We use system libevent for the moment so we needed to adapt the includes in this file. * Source/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc: Readded lines removed by mistake in a previous commit. Source/WebCore: This is the first step to add webrtc support to the GTK port using the libwebrtc backend. No new tests, no new feature added, it should be tested by current tests. * CMakeLists.txt: Add the new files to the compilation and set the new includes in the libwebrtc library. * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Reorder the includes alphabetically and add some that are missing. * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp: Ditto. * Sources.txt: Add new file to the compilation. * platform/mediastream/gstreamer/RealtimeIncomingAudioSourceLibWebRTC.cpp: Added. Initial implementation for GTK and WPE. * platform/mediastream/gstreamer/RealtimeIncomingAudioSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeIncomingVideoSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeIncomingVideoSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/libwebrtc/LibWebRTCProviderGlib.cpp: Added includes for the compilation. * platform/mediastream/libwebrtc/LibWebRTCProviderGlib.h: Added, inherit from the LibWebRTCProvider to adapt for glib. Source/WebKit: * CMakeLists.txt: Add RTC network classes to the compilation and the libwebrtc includes. * PlatformGTK.cmake: Add the libwebrtc directory. * SourcesGTK.txt: Add RTC files to the compilation. Tools: * gstreamer/jhbuild.modules: Modified the libvpx module for the libwebrtc compilation. * gtk/install-dependencies: Add libevent as a system requirement. * Scripts/webkitpy/style/checker.py: Added libwebrtc to the list of third party libraries with reduced style checks. Canonical link: https://commits.webkit.org/199775@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-04-02 11:29:03 +00:00
if (USE_LIBWEBRTC)
add_subdirectory(ThirdParty/libwebrtc)
2021-04-15 13:02:06 +00:00
include_directories(${CMAKE_CURRENT_BINARY_DIR}/ThirdParty/libwebrtc)
[GTK] Make libwebrtc backend buildable for GTK port https://bugs.webkit.org/show_bug.cgi?id=178860 Patch by Alejandro G. Castro <alex@igalia.com> on 2018-04-02 Reviewed by Youenn Fablet. .: * Source/CMakeLists.txt: Add the libwebrtc directory to the compilation. * Source/cmake/OptionsGTK.cmake: Add the USE_LIBWEBRTC option to allow compilation of the specific code. Source/ThirdParty/libwebrtc: Modified the cmake file and added some assembly code to the boringssl compilation required for the linux compilation generated by libwebrtc. * CMakeLists.txt: This cmake file was unused so we have modified it completely to make it work for our port. It was originally generated from the libwebrtc json file but not anymore. We could change its structure at some point but current one seems a good option for the moment. * Source/webrtc/base/task_queue_libevent.cc: We use system libevent for the moment so we needed to adapt the includes in this file. * Source/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc: Readded lines removed by mistake in a previous commit. Source/WebCore: This is the first step to add webrtc support to the GTK port using the libwebrtc backend. No new tests, no new feature added, it should be tested by current tests. * CMakeLists.txt: Add the new files to the compilation and set the new includes in the libwebrtc library. * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Reorder the includes alphabetically and add some that are missing. * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp: Ditto. * Sources.txt: Add new file to the compilation. * platform/mediastream/gstreamer/RealtimeIncomingAudioSourceLibWebRTC.cpp: Added. Initial implementation for GTK and WPE. * platform/mediastream/gstreamer/RealtimeIncomingAudioSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeIncomingVideoSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeIncomingVideoSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceLibWebRTC.cpp: Added. Ditto. * platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceLibWebRTC.h: Added. Ditto. * platform/mediastream/libwebrtc/LibWebRTCProviderGlib.cpp: Added includes for the compilation. * platform/mediastream/libwebrtc/LibWebRTCProviderGlib.h: Added, inherit from the LibWebRTCProvider to adapt for glib. Source/WebKit: * CMakeLists.txt: Add RTC network classes to the compilation and the libwebrtc includes. * PlatformGTK.cmake: Add the libwebrtc directory. * SourcesGTK.txt: Add RTC files to the compilation. Tools: * gstreamer/jhbuild.modules: Modified the libvpx module for the libwebrtc compilation. * gtk/install-dependencies: Add libevent as a system requirement. * Scripts/webkitpy/style/checker.py: Added libwebrtc to the list of third party libraries with reduced style checks. Canonical link: https://commits.webkit.org/199775@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-04-02 11:29:03 +00:00
endif ()
if (ENABLE_WEBINSPECTORUI)
add_subdirectory(WebInspectorUI)
endif ()
if (ENABLE_WEBCORE)
add_subdirectory(WebCore)
endif ()
if (ENABLE_WEBKIT_LEGACY)
add_subdirectory(WebKitLegacy)
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
endif ()
if (ENABLE_WEBKIT)
add_subdirectory(WebKit)
[CMake] Unify coding style for CMake files https://bugs.webkit.org/show_bug.cgi?id=103605 Patch by Halton Huo <halton.huo@intel.com> on 2012-12-05 Reviewed by Laszlo Gombos. Update cmake files(.cmake, CMakeLists.txt) with following style rules: 1. Indentation 1.1 Use spaces, not tabs. 1.2 Four spaces as indent. 2. Spacing 2.1 Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). 2.2 Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). 2.3 Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) 2.4 No space at line ending. 3. Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). .: * CMakeLists.txt: * Source/CMakeLists.txt: * Source/PlatformEfl.cmake: * Source/cmake/EFLHelpers.cmake: * Source/cmake/FindATK.cmake: * Source/cmake/FindCFLite.cmake: * Source/cmake/FindCairo.cmake: * Source/cmake/FindDBus.cmake: * Source/cmake/FindDirectX.cmake: * Source/cmake/FindE_DBus.cmake: * Source/cmake/FindEcore.cmake: * Source/cmake/FindEdje.cmake: * Source/cmake/FindEet.cmake: * Source/cmake/FindEeze.cmake: * Source/cmake/FindEfreet.cmake: * Source/cmake/FindEina.cmake: * Source/cmake/FindElementary.cmake: * Source/cmake/FindEnchant.cmake: * Source/cmake/FindEvas.cmake: * Source/cmake/FindFontconfig.cmake: * Source/cmake/FindGLIB.cmake: * Source/cmake/FindGStreamer.cmake: * Source/cmake/FindGperf.cmake: * Source/cmake/FindHarfBuzz.cmake: * Source/cmake/FindICU.cmake: * Source/cmake/FindLibSoup.cmake: * Source/cmake/FindQuickTimeSDK.cmake: * Source/cmake/FindSqlite.cmake: * Source/cmake/OptionsBlackBerry.cmake: * Source/cmake/OptionsCommon.cmake: * Source/cmake/OptionsEfl.cmake: * Source/cmake/OptionsWinCE.cmake: * Source/cmake/OptionsWindows.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitHelpers.cmake: * Source/cmake/WebKitMacros.cmake: * Source/cmake/WebKitPackaging.cmake: * Source/cmake/gtest/CMakeLists.txt: Source/JavaScriptCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * shell/CMakeLists.txt: * shell/PlatformBlackBerry.cmake: * shell/PlatformEfl.cmake: * shell/PlatformWinCE.cmake: Source/WebCore: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: * UseJSC.cmake: * UseV8.cmake: Source/WebKit: * CMakeLists.txt: * PlatformBlackBerry.cmake: * PlatformEfl.cmake: * PlatformWinCE.cmake: Source/WebKit/efl: * DefaultTheme/CMakeLists.txt: Source/WebKit2: * CMakeLists.txt: * PlatformEfl.cmake: * win/WebKit2ExportGenerator.vcproj: * win/WebKit2ExportGeneratorCommon.vsprops: Source/WTF: * CMakeLists.txt: * wtf/CMakeLists.txt: * wtf/PlatformBlackBerry.cmake: * wtf/PlatformEfl.cmake: * wtf/PlatformWinCE.cmake: Tools: * CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/efl/CMakeLists.txt: * EWebLauncher/CMakeLists.txt: * EWebLauncher/ControlTheme/CMakeLists.txt: * MiniBrowser/efl/CMakeLists.txt: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * WebKitTestRunner/CMakeLists.txt: * WebKitTestRunner/PlatformEfl.cmake: * WinCELauncher/CMakeLists.txt: * clang/ReportMemoryUsagePlugin/CMakeLists.txt: Canonical link: https://commits.webkit.org/122367@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-06 03:10:13 +00:00
endif ()
Add initial implementation of WebDriver process to run the HTTP server https://bugs.webkit.org/show_bug.cgi?id=166682 Reviewed by Brian Burg. .: Enable WebDriver in the GTK port by default. * Source/CMakeLists.txt: * Source/cmake/OptionsGTK.cmake: * Source/cmake/WebKitFS.cmake: * Source/cmake/WebKitFeatures.cmake: Source/WebDriver: Add WebDriver process that runs the HTTP server and implements an initial set of commands. Most of the code is cross-platform, only the HTTP server implementation, the code to launch the browser and the communication with the remote inspector requires platform specific code. This patch includes the GTK port implementation, using libsoup for the HTTP server, and GLib for launching the browser and communicating with the remote inspector. This implementation follows the w3c spec (https://www.w3.org/TR/webdriver) as close as possible, but using the official selenium python tests as reference. * CMakeLists.txt: Added. * Capabilities.h: Added. * CommandResult.cpp: Added. * CommandResult.h: Added. * HTTPServer.cpp: Added. * HTTPServer.h: Added. * PlatformGTK.cmake: Added. * Session.cpp: Added. * Session.h: Added. * SessionHost.cpp: Added. * SessionHost.h: Added. * WebDriverMain.cpp: Added. * WebDriverService.cpp: Added. * WebDriverService.h: Added. * config.h: Added. * glib/SessionHostGlib.cpp: Added. * gtk/WebDriverServiceGtk.cpp: Added. * soup/HTTPServerSoup.cpp: Added. Canonical link: https://commits.webkit.org/191418@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-07-18 07:20:33 +00:00
if (ENABLE_WEBDRIVER)
add_subdirectory(WebDriver)
endif ()
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()