What's new? | Help | Directory | Sign in
Google
gears
Improving Your Web Browser
  
  
  
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/python2.4
#
# Copyright 2007 Google Inc. All Rights Reserved.

""" VS Project template for use with Templatizer class.

This file contains the templatized strings used for generating a VS project.
It is meant to be loaded via a call to Python's
execFile('filename.py', {}, dictToPlaceValuesFromThisFileIn)
executed by the Templatizer class.

As described in the documentation for the Templatizer class, each string
uses Python style %(identifier)s tags to be used for template substitution.

What follows is a definition of each template name defined in this file. For
each template we specify all parameters that can be replaced:

TARGET_SECTION: section defining a compilation target
TARGET_NAME: human readable name for the target
INCLUDE_DIRECTORIES: ; separated list of include directories
PREPROCESSOR_DEFINES: ; separated list of preprocessor defines for that
target

MAIN_VS_PROJECT_SKELETON: main XML wrapper for project skeleton.
TARGET_SECTIONS: place multiple target sections here.
FILES_SECTION: place to put references to the actual files.

FILE_GROUP: definition of file group
FILE_GROUP_NAME: name of this file group
FILE_LIST: place list of files or more file groups in here.

FILE_DEFINITION: marker for an individual file
REL_PATH_TO_FILE: path to file relative to the project.
FILE_EXCLUSIONS: zero or more BUILD_EXCLUDE_GROUPs

BUILD_EXCLUDE_GROUP: exclude current file from building in the specified
environment.

EXCLUDE_TARGET_NAME: target to exclude this file in."""

__author__ = 'playmobil@google.com (Jeremy Moskovich)'

FILE_GROUP = r"""<Filter Name="%(FILE_GROUP_NAME)s">
%(FILE_LIST)s
</Filter>"""

# TODO(playmobil): this goes inside file tag to exclude files from a build
# group.

BUILD_EXCLUDE_GROUP = r"""<FileConfiguration
Name="%(EXCLUDE_TARGET_NAME)s"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>"""

FILE_DEFINITION = r"""<File
RelativePath="%(REL_PATH_TO_FILE)s"
>
%(FILE_EXCLUSIONS)s
</File>"""

TARGET_SECTION = r"""<Configuration
Name="%(TARGET_NAME)s"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="0"
BuildLogFile="$(SolutionDir)\..\logs\%(MODE)s-%(BROWSER)s-vs-build-log.html"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="$(SolutionDir)\scripts\build BROWSER=%(BROWSER)s MODE=%(MODE)s"
ReBuildCommandLine="$(SolutionDir)\scripts\rebuild BROWSER=%(BROWSER)s MODE=%(MODE)s"
CleanCommandLine="$(SolutionDir)\scripts\clean"
Output=""
PreprocessorDefinitions="%(PREPROCESSOR_DEFINES)s"
IncludeSearchPath="%(INCLUDE_DIRECTORIES)s"
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>"""

MAIN_VS_PROJECT_SKELETON = r"""<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="Gears"
ProjectGUID="{B7B8AE56-AB05-409B-A818-F57B208E193D}"
RootNamespace="Gears"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
%(TARGET_SECTIONS)s
</Configurations>
<References>
</References>
<Files>
%(FILES_SECTION)s
</Files>
<Globals>
</Globals>
</VisualStudioProject>"""
Show details Hide details

Change log

r647 by gears.daemon on Jan 04, 2008   Diff
[Author: aa]

Fix: http://code.google.com/p/google-
gears/issues/detail?id=333

Add scripts to make it easy to setup a
windows development environment
for external developers.

R=playmobil
CC=google-gears-eng@googlegroups.com
APPROVED=playmobil
...
Go to: 
Project members, sign in to write a code review

Older revisions

r485 by gears.daemon on Nov 27, 2007   Diff
[Author: playmobil]

Pending changelist for readability
review.

...
r429 by gears.daemon on Nov 15, 2007   Diff
[Author: playmobil]

Generic script for generating VS 2005
project file for the project.

...
All revisions of this file

File info

Size: 3355 bytes, 112 lines

File properties

svn:executable
*