/
lesson_1_2_main_and_gyp.diff
69 lines (69 loc) · 1.92 KB
/
lesson_1_2_main_and_gyp.diff
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
diff --git a/app/main.cc b/app/main.cc
new file mode 100644
index 0000000..a234030
--- /dev/null
+++ b/app/main.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2015 University of Szeged.
+// Copyright (c) 2015 The Chromium Authors.
+// All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/app/content_main.h"
+
+int main(int argc, const char** argv) {
+
+ content::ContentMainParams params(NULL);
+ params.argc = argc;
+ params.argv = argv;
+
+ return content::ContentMain(params);
+}
diff --git a/sprocket.gyp b/sprocket.gyp
new file mode 100644
index 0000000..c173616
--- /dev/null
+++ b/sprocket.gyp
@@ -0,0 +1,41 @@
+# Copyright (c) 2015 University of Szeged.
+# Copyright (c) 2015 The Chromium Authors.
+# All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'variables': {
+ 'pkg-config': 'pkg-config',
+ 'chromium_code': 1,
+ 'sprocket_version': '0.1.0.0',
+ },
+ 'targets': [
+ {
+ 'target_name': 'sprocket_lib',
+ 'type': 'static_library',
+ 'dependencies': [
+ # Content dependencies
+ '<(DEPTH)/content/content.gyp:content_app_both',
+ '<(DEPTH)/content/content.gyp:content_common',
+ '<(DEPTH)/content/content.gyp:content_gpu',
+ '<(DEPTH)/content/content.gyp:content_plugin',
+ '<(DEPTH)/content/content.gyp:content_ppapi_plugin',
+ '<(DEPTH)/content/content.gyp:content_renderer',
+ '<(DEPTH)/content/content.gyp:content_resources',
+ '<(DEPTH)/content/content.gyp:content_utility',
+ '<(DEPTH)/content/content.gyp:content_browser',
+ ],
+ 'sources': [
+ ],
+ },
+ {
+ 'target_name': 'sprocket',
+ 'type': 'executable',
+ 'dependencies': [
+ 'sprocket_lib',
+ ],
+ 'sources': [
+ 'app/main.cc',
+ ],
+ }]
+}