Commit 8a185633 authored by qsr's avatar qsr Committed by Commit bot

mojo: Update gyp python targets to specify their equivalent gn targets.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/566333002

Cr-Commit-Position: refs/heads/master@{#295036}
parent 51262702
...@@ -556,6 +556,7 @@ ...@@ -556,6 +556,7 @@
['component!="shared_library" and OS=="linux"', { ['component!="shared_library" and OS=="linux"', {
'targets': [ 'targets': [
{ {
# GN version: //mojo/public/python:system
'target_name': 'mojo_python_system', 'target_name': 'mojo_python_system',
'variables': { 'variables': {
'python_base_module': 'mojo', 'python_base_module': 'mojo',
...@@ -571,6 +572,7 @@ ...@@ -571,6 +572,7 @@
'includes': [ '../third_party/cython/cython_compiler.gypi' ], 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
}, },
{ {
# GN version: //mojo/python:embedder
'target_name': 'mojo_python_embedder', 'target_name': 'mojo_python_embedder',
'type': 'loadable_module', 'type': 'loadable_module',
'variables': { 'variables': {
...@@ -586,6 +588,7 @@ ...@@ -586,6 +588,7 @@
'includes': [ '../third_party/cython/cython_compiler.gypi' ], 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
}, },
{ {
# GN version: //mojo/public/python:bindings
'target_name': 'mojo_python_bindings', 'target_name': 'mojo_python_bindings',
'type': 'none', 'type': 'none',
'variables': { 'variables': {
...@@ -602,6 +605,7 @@ ...@@ -602,6 +605,7 @@
'includes': [ '../third_party/cython/python_module.gypi' ], 'includes': [ '../third_party/cython/python_module.gypi' ],
}, },
{ {
# GN version: //mojo/python
'target_name': 'mojo_python', 'target_name': 'mojo_python',
'type': 'none', 'type': 'none',
'variables': { 'variables': {
......
...@@ -12,6 +12,7 @@ group("python") { ...@@ -12,6 +12,7 @@ group("python") {
] ]
} }
# GYP version: mojo.gyp:mojo_python_system
python_binary_module("system") { python_binary_module("system") {
python_base_module = "mojo" python_base_module = "mojo"
sources = [ sources = [
...@@ -33,6 +34,7 @@ copy("base") { ...@@ -33,6 +34,7 @@ copy("base") {
] ]
} }
# GYP version: mojo.gyp:mojo_python_bindings
copy("bindings") { copy("bindings") {
sources = [ sources = [
"mojo/bindings/__init__.py", "mojo/bindings/__init__.py",
......
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
import("//third_party/cython/rules.gni") import("//third_party/cython/rules.gni")
# GYP version: mojo/mojo.gyp:mojo_python
group("python") { group("python") {
deps = [ deps = [
":embedder", ":embedder",
"//mojo/public/python",
] ]
} }
# GYP version: mojo/mojo.gyp:mojo_python_embedder
python_binary_module("embedder") { python_binary_module("embedder") {
python_base_module = "mojo" python_base_module = "mojo"
sources = [ sources = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment