Fixed the DEPS folder and added a .gclient file so gclient sync will now work.

This commit is contained in:
Geoff Lang 2013-10-07 17:07:33 -04:00
Родитель 6850947e14
Коммит 0049e43d65
6 изменённых файлов: 32 добавлений и 26 удалений

7
.gclient Normal file
Просмотреть файл

@ -0,0 +1,7 @@
solutions = [ {
u'managed': False,
u'name': u'.',
u'url': u'https://code.google.com/p/angleproject/',
u'custom_deps': { },
u'deps_file': u'DEPS'
} ]

10
.gitignore поставляемый
Просмотреть файл

@ -3,7 +3,6 @@ Release
*.sdf
*.ncb
*.suo
*.vcproj.*
*.vcxproj.user
patches-*
*.target.mk
@ -12,8 +11,7 @@ debug.txt
*.opensdf
*.orig
*.rej
# Files generated by gyp
src/build_angle.sln
src/*.vcxproj
src/*.vcxproj.filters
.gclient_entries
third_party
tests/third_party
build/trunk

12
DEPS
Просмотреть файл

@ -1,18 +1,18 @@
deps = {
"trunk/third_party/gyp":
"third_party/gyp":
"http://gyp.googlecode.com/svn/trunk@1564",
"trunk/third_party/googletest":
"http://googletest.googlecode.com/svn/trunk@573", #release 1.6.0
"tests/third_party/googletest":
"http://googletest.googlecode.com/svn/trunk@629",
"trunk/third_party/googlemock":
"http://googlemock.googlecode.com/svn/trunk@387", #release 1.6.0
"tests/third_party/googlemock":
"http://googlemock.googlecode.com/svn/trunk@410",
}
hooks = [
{
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
"pattern": ".",
"action": ["python", "trunk/build/gyp_angle"],
"action": ["python", "build/gyp_angle"],
},
]

Просмотреть файл

@ -14,6 +14,7 @@ script_dir = os.path.dirname(__file__)
angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir))
sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib'))
print os.path.join(angle_dir, 'third_party', 'gyp', 'pylib')
import gyp
if __name__ == '__main__':

Просмотреть файл

@ -153,7 +153,7 @@ protected:
const char* source,
int compileOptions,
const char* expected_error) {
bool success = ShCompile(compiler, &source, 1, compileOptions);
bool success = ShCompile(compiler, &source, 1, compileOptions) != 0;
if (success) {
success = !expected_error;
} else {

Просмотреть файл

@ -10,12 +10,12 @@
'type': 'static_library',
'include_dirs':
[
'../third_party/googletest',
'../third_party/googletest/include',
'third_party/googletest',
'third_party/googletest/include',
],
'sources':
[
'../third_party/googletest/src/gtest-all.cc',
'third_party/googletest/src/gtest-all.cc',
],
},
@ -24,13 +24,13 @@
'type': 'static_library',
'include_dirs':
[
'../third_party/googlemock',
'../third_party/googlemock/include',
'../third_party/googletest/include',
'third_party/googlemock',
'third_party/googlemock/include',
'third_party/googletest/include',
],
'sources':
[
'../third_party/googlemock/src/gmock-all.cc',
'third_party/googlemock/src/gmock-all.cc',
],
},
@ -46,12 +46,12 @@
'include_dirs':
[
'../src/compiler/preprocessor',
'../third_party/googletest/include',
'../third_party/googlemock/include',
'third_party/googletest/include',
'third_party/googlemock/include',
],
'sources':
[
'../third_party/googlemock/src/gmock_main.cc',
'third_party/googlemock/src/gmock_main.cc',
'<!@(python enumerate_files.py preprocessor_tests -types *.cpp *.h)'
],
},
@ -69,12 +69,12 @@
[
'../include',
'../src',
'../third_party/googletest/include',
'../third_party/googlemock/include',
'third_party/googletest/include',
'third_party/googlemock/include',
],
'sources':
[
'../third_party/googlemock/src/gmock_main.cc',
'third_party/googlemock/src/gmock_main.cc',
'<!@(python enumerate_files.py compiler_tests -types *.cpp *.h)'
],
},