Changeset 184033 in webkit
- Timestamp:
- May 8, 2015, 5:33:37 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 added
- 1 edited
- 5 copied
-
ChangeLog (modified) (1 diff)
-
ContentExtensionTester (added)
-
ContentExtensionTester/Configurations (added)
-
ContentExtensionTester/Configurations/Base.xcconfig (copied) (copied from trunk/Source/bmalloc/Configurations/Base.xcconfig ) (4 diffs)
-
ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig (copied) (copied from trunk/Source/bmalloc/Configurations/bmalloc.xcconfig ) (2 diffs)
-
ContentExtensionTester/Configurations/DebugRelease.xcconfig (copied) (copied from trunk/Source/bmalloc/Configurations/DebugRelease.xcconfig ) (2 diffs)
-
ContentExtensionTester/ContentExtensionTester.xcodeproj (added)
-
ContentExtensionTester/ContentExtensionTester.xcodeproj/project.pbxproj (added)
-
ContentExtensionTester/Makefile (copied) (copied from trunk/Tools/TestWebKitAPI/Makefile ) (1 diff)
-
ContentExtensionTester/main.m (added)
-
Scripts/run-content-extension-tester (copied) (copied from trunk/Tools/Scripts/run-webkit-tests ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r184018 r184033 1 2015-05-07 Sam Weinig <sam@webkit.org> 2 3 [Content Extensions] Add simple tester that takes an extension and compiles it 4 https://bugs.webkit.org/show_bug.cgi?id=144781 5 6 Reviewed by Dan Bates. 7 8 * ContentExtensionTester: Added. 9 * ContentExtensionTester/Configurations: Added. 10 * ContentExtensionTester/Configurations/Base.xcconfig: Copied from Source/bmalloc/Configurations/Base.xcconfig. 11 * ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig: Copied from Source/bmalloc/Configurations/bmalloc.xcconfig. 12 * ContentExtensionTester/Configurations/DebugRelease.xcconfig: Copied from Source/bmalloc/Configurations/DebugRelease.xcconfig. 13 * ContentExtensionTester/ContentExtensionTester.xcodeproj: Added. 14 * ContentExtensionTester/ContentExtensionTester.xcodeproj/project.pbxproj: Added. 15 * ContentExtensionTester/Makefile: Copied from Tools/TestWebKitAPI/Makefile. 16 * ContentExtensionTester/main.m: Added. 17 * Scripts/run-content-extension-tester: Copied from Tools/Scripts/run-webkit-tests. 18 1 19 2015-05-08 Alexey Proskuryakov <ap@apple.com> 2 20 -
trunk/Tools/ContentExtensionTester/Configurations/Base.xcconfig
r183966 r184033 1 // Copyright (C) 20 09, 2010, 2011, 2013Apple Inc. All rights reserved.1 // Copyright (C) 2015 Apple Inc. All rights reserved. 2 2 // 3 3 // Redistribution and use in source and binary forms, with or without … … 41 41 GCC_C_LANGUAGE_STANDARD = gnu99; 42 42 GCC_DEBUGGING_SYMBOLS = default; 43 GCC_DYNAMIC_NO_PIC = NO;44 43 GCC_ENABLE_CPP_EXCEPTIONS = NO; 45 44 GCC_ENABLE_CPP_RTTI = NO; 46 45 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 47 GCC_ENABLE_OBJC_GC = $(GCC_ENABLE_OBJC_GC_$(PLATFORM_NAME)_$(USE_INTERNAL_SDK));48 GCC_ENABLE_OBJC_GC_macosx_ = NO;49 GCC_ENABLE_OBJC_GC_macosx_YES = supported;50 46 GCC_ENABLE_SYMBOL_SEPARATION = NO; 51 47 GCC_FAST_OBJC_DISPATCH = YES; 52 48 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 53 GCC_INLINES_ARE_PRIVATE_EXTERN = YES;54 GCC_MODEL_TUNING[sdk=macosx*] = G5;55 49 GCC_OBJC_CALL_CXX_CDTORS = YES; 56 50 GCC_PRECOMPILE_PREFIX_HEADER = YES; 57 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST HAVE_HEADER_DETECTION_H $(GCC_PREPROCESSOR_DEFINITIONS);51 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(inherited); 58 52 GCC_STRICT_ALIASING = YES; 59 53 GCC_THREADSAFE_STATICS = NO; 60 54 GCC_TREAT_WARNINGS_AS_ERRORS = YES; 61 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;62 // FIXME: <http://webkit.org/b/107093> WTF should build with -Wshorten-64-to-3263 GCC_WARN_64_TO_32_BIT_CONVERSION = $(GCC_WARN_64_TO_32_BIT_CONVERSION_$(CURRENT_ARCH));64 55 GCC_WARN_64_TO_32_BIT_CONVERSION_ = YES; 65 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7 = YES;66 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7k = YES;67 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7s = YES;68 GCC_WARN_64_TO_32_BIT_CONVERSION_arm64 = NO;69 GCC_WARN_64_TO_32_BIT_CONVERSION_i386 = YES;70 GCC_WARN_64_TO_32_BIT_CONVERSION_x86_64 = NO;71 56 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; 72 57 GCC_WARN_ABOUT_MISSING_NEWLINE = YES; … … 80 65 GCC_WARN_UNUSED_VARIABLE = YES; 81 66 LINKER_DISPLAYS_MANGLED_NAMES = YES; 82 PREBINDING = NO;83 67 WARNING_CFLAGS = -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough; 84 68 85 69 TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR); 86 87 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx;88 70 89 71 // DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants. … … 97 79 GCC_OPTIMIZATION_LEVEL_debug = 0; 98 80 99 STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT));100 STRIP_INSTALLED_PRODUCT_normal = YES;101 STRIP_INSTALLED_PRODUCT_debug = NO;102 103 DEAD_CODE_STRIPPING_debug = NO;104 DEAD_CODE_STRIPPING_normal = YES;105 DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));106 107 INSTALL_PATH_PREFIX[sdk=iphonesimulator8.*] = $(DEVELOPER_INSTALL_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/$(SDK_DIR:file);108 INSTALL_PATH = $(INSTALL_PATH_PREFIX)$(INSTALL_PATH_ACTUAL);109 110 81 SDKROOT = macosx.internal; 111 82 -
trunk/Tools/ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig
r183966 r184033 1 // Copyright (C) 201 4Apple Inc. All rights reserved.1 // Copyright (C) 2015 Apple Inc. All rights reserved. 2 2 // 3 3 // Redistribution and use in source and binary forms, with or without … … 22 22 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 23 24 EXECUTABLE_PREFIX = lib; 25 INSTALL_PATH_ACTUAL = /usr/local/lib; 26 PRIVATE_HEADERS_FOLDER_PATH = $(PRIVATE_HEADERS_FOLDER_PATH_$(DEPLOYMENT_LOCATION)); 27 PRIVATE_HEADERS_FOLDER_PATH_NO = /usr/local/include/bmalloc; 28 PRIVATE_HEADERS_FOLDER_PATH_YES = $(INSTALL_PATH_PREFIX)/usr/local/include/bmalloc; 29 PRODUCT_NAME = bmalloc; 30 31 GCC_SYMBOLS_PRIVATE_EXTERN = YES; 32 STRIP_INSTALLED_PRODUCT = NO; 24 PRODUCT_NAME = $(TARGET_NAME); -
trunk/Tools/ContentExtensionTester/Configurations/DebugRelease.xcconfig
r183966 r184033 1 // Copyright (C) 20 09, 2010, 2013Apple Inc. All rights reserved.1 // Copyright (C) 2015 Apple Inc. All rights reserved. 2 2 // 3 3 // Redistribution and use in source and binary forms, with or without … … 24 24 #include "Base.xcconfig" 25 25 26 ARCHS = $(ARCHS_STANDARD_32_64_BIT);27 26 ONLY_ACTIVE_ARCH = YES; 28 27 -
trunk/Tools/ContentExtensionTester/Makefile
r183966 r184033 1 # Build TestWebKitAPI only on Snow Leopard and later.2 3 OSX_VERSION ?= $(shell sw_vers -productVersion | cut -d. -f 2)4 BUILD_TESTWEBKITAPI = $(shell (( $(OSX_VERSION) >= 6 )) && echo "YES" )5 6 ifeq "$(BUILD_TESTWEBKITAPI)" "YES"7 8 1 SCRIPTS_PATH = ../Scripts 9 2 include ../../Makefile.shared 10 11 else12 13 all: ;14 15 debug d development dev develop: ;16 17 release r deployment dep deploy: ;18 19 clean: ;20 21 endif -
trunk/Tools/Scripts/run-content-extension-tester
r183966 r184033 1 #!/usr/bin/env python 2 # Copyright (C) 2011 Google Inc. All rights reserved. 1 #!/usr/bin/perl -w 2 3 # Copyright (C) 2015 Apple Inc. All rights reserved. 3 4 # 4 5 # Redistribution and use in source and binary forms, with or without 5 # modification, are permitted provided that the following conditions are 6 # met: 6 # modification, are permitted provided that the following conditions 7 # are met: 8 # 1. Redistributions of source code must retain the above copyright 9 # notice, this list of conditions and the following disclaimer. 10 # 2. Redistributions in binary form must reproduce the above copyright 11 # notice, this list of conditions and the following disclaimer in the 12 # documentation and/or other materials provided with the distribution. 7 13 # 8 # * Redistributions of source code must retain the above copyright 9 # notice, this list of conditions and the following disclaimer. 10 # * Redistributions in binary form must reproduce the above 11 # copyright notice, this list of conditions and the following disclaimer 12 # in the documentation and/or other materials provided with the 13 # distribution. 14 # * Neither the name of Google Inc. nor the names of its 15 # contributors may be used to endorse or promote products derived from 16 # this software without specific prior written permission. 17 # 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 14 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 15 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 18 # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 # THE POSSIBILITY OF SUCH DAMAGE. 29 25 30 """Wrapper around webkitpy/layout_tests/run_webkit_tests.py""" 31 from webkitpy.common import multiprocessing_bootstrap 26 use strict; 27 use FindBin; 28 use lib $FindBin::Bin; 29 use webkitdirs; 32 30 33 multiprocessing_bootstrap.run('webkitpy', 'layout_tests', 'run_webkit_tests.py') 31 printHelpAndExitForRunAndDebugWebKitAppIfNeeded(); 32 33 setConfiguration(); 34 35 if (!isAppleMacWebKit()) { 36 exit 1; 37 } 38 39 exit exitStatus(runMacWebKitApp(File::Spec->catfile(productDir(), "ContentExtensionTester")));
Note:
See TracChangeset
for help on using the changeset viewer.