Skip to content

Commit

Permalink
Source/JavaScriptCore: [Win] Pass environment to Pre-Build, Pre-link,…
Browse files Browse the repository at this point in the history
… and Post-Build Stages.

https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* JavaScriptCore.vcxproj/JavaScriptCore.proj: Avoid trailing backslashes in
path names to avoid accidental escaping of later string substitutions.

Source/WebCore: [Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023.

Reviewed by Dean Jackson.

* WebCore.vcxproj/WebCore.proj: Avoid trailing slashes in path values to
prevent escaping during later string substitution.

Source/WebKit: [Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* WebKit.vcxproj/WebKit.make: Removed.
* WebKit.vcxproj/WebKit/WebKitPostBuild.cmd: Use %PlatformArchitecture% rather than
hard-coded 32-bit path.

Source/WTF: [Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023.

Reviewed by Dean Jackson.

* WTF.vcxproj/WTF.proj: Avoid putting trailing slashes in system paths to avoid
escaping during later string substitution.
* WTF.vcxproj/build-generated-files.sh: Accept environment values passed by VS.

Tools: [Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTreeLauncher.vcxproj: Add missing
/SAFESEH flag to DLL launcher process.

WebKitLibraries: [Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* win/tools/vsprops/common.props: Pass WEBKIT_LIBRARIES value to subprocesses.
* win/tools/vsprops/debugsuffix.props: Make sure OFFICIAL_BUILD is set.
* win/tools/vsprops/production.props: Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
[email protected] committed Mar 10, 2014
1 parent 106b65b commit ceac3a5
Show file tree
Hide file tree
Showing 16 changed files with 118 additions and 31 deletions.
10 changes: 10 additions & 0 deletions Source/JavaScriptCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* JavaScriptCore.vcxproj/JavaScriptCore.proj: Avoid trailing backslashes in
path names to avoid accidental escaping of later string substitutions.

2014-03-10 Andreas Kling <[email protected]>

[X86_64] Smaller code for testb_i8r when register is accumulator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Wrapper to build JavaScriptCore for both win32 and x64. -->
<PropertyGroup>
<OFFICIAL_BUILD>1</OFFICIAL_BUILD>
<WebKit_Libraries>$(SRCROOT)\AppleInternal\</WebKit_Libraries>
<WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>
<WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>
<AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>
<AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>
Expand All @@ -21,8 +21,8 @@
<AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>
<AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>
<AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support\</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support\</ProgramFilesAAS64>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>
<ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>
<OutputDirectory>$(DSTROOT)</OutputDirectory>
</PropertyGroup>
Expand Down
11 changes: 11 additions & 0 deletions Source/WTF/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023.

Reviewed by Dean Jackson.

* WTF.vcxproj/WTF.proj: Avoid putting trailing slashes in system paths to avoid
escaping during later string substitution.
* WTF.vcxproj/build-generated-files.sh: Accept environment values passed by VS.

2014-03-10 Mark Hahnenberg <[email protected]>

Turn on GenGC on other 64-bit platforms
Expand Down
6 changes: 3 additions & 3 deletions Source/WTF/WTF.vcxproj/WTF.proj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Wrapper to build WTF for both win32 and x64. -->
<PropertyGroup>
<OFFICIAL_BUILD>1</OFFICIAL_BUILD>
<WebKit_Libraries>$(SRCROOT)\AppleInternal\</WebKit_Libraries>
<WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>
<WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>
<AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>
<AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>
Expand All @@ -21,8 +21,8 @@
<AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>
<AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>
<AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support\</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support\</ProgramFilesAAS64>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>
<ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>
<OutputDirectory>$(DSTROOT)</OutputDirectory>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Source/WTF/WTF.vcxproj/build-generated-files.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/bash

# Determine whether we have the versioned ICU 4.0 or the unversioned ICU 4.4
UNVERSIONED_ICU_LIB_PATH=$(cygpath -u "${WEBKIT_LIBRARIES}/lib${4}/libicuuc${3}.lib")
ICUVERSION_H_PATH=$(cygpath -u "${CONFIGURATIONBUILDDIR}/include/private/ICUVersion.h")
UNVERSIONED_ICU_LIB_PATH=$(cygpath -u "${2}/lib${4}/libicuuc${3}.lib")
ICUVERSION_H_PATH=$(cygpath -u "${1}/include/private/ICUVersion.h")
if test \( ! -f "${ICUVERSION_H_PATH}" \) -o \( -f "${UNVERSIONED_ICU_LIB_PATH}" -a \( "${UNVERSIONED_ICU_LIB_PATH}" -nt "${ICUVERSION_H_PATH}" \) \)
then
mkdir -p "$(dirname "${ICUVERSION_H_PATH}")"
Expand Down
11 changes: 11 additions & 0 deletions Source/WebCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023.

Reviewed by Dean Jackson.

* WebCore.vcxproj/WebCore.proj: Avoid trailing slashes in path values to
prevent escaping during later string substitution.

2014-03-10 Radu Stavila <[email protected]>

[CSS Regions] Hit-testing is not working properly inside scrollable regions
Expand All @@ -13,6 +23,7 @@
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects):

>>>>>>> .r165392
2014-03-10 Hans Muller <[email protected]>

[CSS Shapes] SVG Image valued shape fails if root element's size is relative
Expand Down
6 changes: 3 additions & 3 deletions Source/WebCore/WebCore.vcxproj/WebCore.proj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Wrapper to build WebCore for both win32 and x64. -->
<PropertyGroup>
<OFFICIAL_BUILD>1</OFFICIAL_BUILD>
<WebKit_Libraries>$(SRCROOT)\AppleInternal\</WebKit_Libraries>
<WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>
<WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>
<AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>
<AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>
Expand All @@ -21,8 +21,8 @@
<AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>
<AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>
<AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support\</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support\</ProgramFilesAAS64>
<ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>
<ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>
<ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>
<OutputDirectory>$(DSTROOT)</OutputDirectory>
</PropertyGroup>
Expand Down
11 changes: 11 additions & 0 deletions Source/WebKit/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* WebKit.vcxproj/WebKit.make: Removed.
* WebKit.vcxproj/WebKit/WebKitPostBuild.cmd: Use %PlatformArchitecture% rather than
hard-coded 32-bit path.

2014-03-10 Martin Robinson <[email protected]>

[GTK] [CMake] Clean up library linking
Expand Down
19 changes: 0 additions & 19 deletions Source/WebKit/WebKit.vcxproj/WebKit.make

This file was deleted.

2 changes: 1 addition & 1 deletion Source/WebKit/WebKit.vcxproj/WebKit/WebKitPostBuild.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdir 2>NUL "%CONFIGURATIONBUILDDIR%\include\WebKit"

set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin32\WebKit.resources
set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin%PlatformArchitecture%\WebKit.resources

xcopy /y /d "%PROJECTDIR%\..\..\win\WebLocalizableStrings.h" "%CONFIGURATIONBUILDDIR%\include\WebKit"
xcopy /y /d "%PROJECTDIR%\..\..\win\WebKitGraphics.h" "%CONFIGURATIONBUILDDIR%\include\WebKit"
Expand Down
10 changes: 10 additions & 0 deletions Tools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTreeLauncher.vcxproj: Add missing
/SAFESEH flag to DLL launcher process.

2014-03-09 Martin Robinson <[email protected]>

RunGtkWebKitGObjectDOMBindingsAPIBreakTests should be added to the BuildAndTestFactory not the TestFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,28 +178,52 @@
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Link />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">
<Link />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">
<Link />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Link />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">
<Link />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">
<Link>
<AdditionalOptions>/SAFESEH %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Production|x64'">
<Link />
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\win\DLLLauncher\DLLLauncherMain.cpp" />
Expand Down
11 changes: 11 additions & 0 deletions WebKitLibraries/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2014-03-10 Brent Fulgham <[email protected]>

[Win] Pass environment to Pre-Build, Pre-Link, and Post-Build Stages.
https://bugs.webkit.org/show_bug.cgi?id=130023

Reviewed by Dean Jackson.

* win/tools/vsprops/common.props: Pass WEBKIT_LIBRARIES value to subprocesses.
* win/tools/vsprops/debugsuffix.props: Make sure OFFICIAL_BUILD is set.
* win/tools/vsprops/production.props: Ditto.

2014-03-06 Dean Jackson <[email protected]>

Update WebKitSystemInterface.
Expand Down
8 changes: 8 additions & 0 deletions WebKitLibraries/win/tools/vsprops/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
<LinkIncremental>false</LinkIncremental>
<NMakeBuildCommandLine>%SystemDrive%\cygwin\bin\which.exe bash
if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
set PLATFORMARCHITECTURE=$(PlatformArchitecture)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
nmake /nologo -f $(ProjectName).make</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>%SystemDrive%\cygwin\bin\which.exe bash
if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
set PLATFORMARCHITECTURE=$(PlatformArchitecture)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
nmake /nologo -f $(ProjectName).make clean
nmake /nologo -f $(ProjectName).make</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>%SystemDrive%\cygwin\bin\which.exe bash
Expand All @@ -27,6 +31,7 @@ set PATH=$(VSInstallDir)\VC\bin;%PATH%
REM VS2010 has a known bug where the clean command does not recognize environment variables properly unless explicitly set here
set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
set PLATFORMARCHITECTURE=$(PlatformArchitecture)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
nmake /nologo -f $(ProjectName).make clean</NMakeCleanCommandLine>
<TargetName>$(ProjectName)$(DebugSuffix)</TargetName>
</PropertyGroup>
Expand Down Expand Up @@ -90,6 +95,7 @@ set TARGETEXT=$(TargetExt)
set TARGETFILENAME=$(TargetFileName)
set TARGETPATH=$(TargetPath)
set DEBUGSUFFIX=$(DebugSuffix)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)

REM If any of the above variables didn't exist previously and
REM were set to an empty string, set will set the errorlevel to 1,
Expand Down Expand Up @@ -126,6 +132,7 @@ set TARGETEXT=$(TargetExt)
set TARGETFILENAME=$(TargetFileName)
set TARGETPATH=$(TargetPath)
set DEBUGSUFFIX=$(DebugSuffix)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)

REM If any of the above variables didn't exist previously and
REM were set to an empty string, set will set the errorlevel to 1,
Expand Down Expand Up @@ -162,6 +169,7 @@ set TARGETEXT=$(TargetExt)
set TARGETFILENAME=$(TargetFileName)
set TARGETPATH=$(TargetPath)
set DEBUGSUFFIX=$(DebugSuffix)
set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)

REM If any of the above variables didn't exist previously and
REM were set to an empty string, set will set the errorlevel to 1,
Expand Down
5 changes: 5 additions & 0 deletions WebKitLibraries/win/tools/vsprops/debugsuffix.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<DebugSuffix>_debug</DebugSuffix>
<OFFICIAL_BUILD>1</OFFICIAL_BUILD>
</PropertyGroup>
<PropertyGroup>
<TargetName>$(TargetName)$(DebugSuffix)</TargetName>
Expand All @@ -20,5 +21,9 @@
<BuildMacro Include="DebugSuffix">
<Value>$(DebugSuffix)</Value>
</BuildMacro>
<BuildMacro Include="OFFICIAL_BUILD">
<Value>$(OFFICIAL_BUILD)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions WebKitLibraries/win/tools/vsprops/production.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<PRODUCTION>1</PRODUCTION>
<OFFICIAL_BUILD>1</OFFICIAL_BUILD>
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup>
Expand All @@ -24,5 +25,9 @@
<Value>$(PRODUCTION)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OFFICIAL_BUILD">
<Value>$(OFFICIAL_BUILD)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
</ItemGroup>
</Project>

0 comments on commit ceac3a5

Please sign in to comment.