Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Add Importer support
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Sep 19, 2016
1 parent 28e6dea commit e116b6c
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 5 deletions.
1 change: 1 addition & 0 deletions chromiumcontent/chromiumcontent.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'<(DEPTH)/chrome/chrome.gyp:chromedriver',
'extensions.gyp:extensions',
'autofill.gyp:autofill',
'importer.gyp:importer',
],
'conditions': [
['OS=="linux"', {
Expand Down
17 changes: 17 additions & 0 deletions chromiumcontent/importer.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
'targets': [
{
'target_name': 'importer',
'type': 'none',
'dependencies': [
'<(DEPTH)/components/components.gyp:bookmarks_browser',
'<(DEPTH)/components/components.gyp:component_metrics_proto',
'<(DEPTH)/components/components.gyp:favicon_base',
'<(DEPTH)/components/components.gyp:google_core_browser',
'<(DEPTH)/components/components.gyp:history_core_browser',
'<(DEPTH)/components/components.gyp:search_engines',
'<(DEPTH)/components/components.gyp:query_parser',
]
}
]
}
11 changes: 6 additions & 5 deletions script/lib/brave.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import lib.extensions
from lib.extensions import copy_extension_locales
import lib.autofill
import lib.importer

BINARIES = lib.extensions.BINARIES
BINARIES['darwin'] = BINARIES['darwin'] + lib.autofill.BINARIES['darwin']
BINARIES['linux'] = BINARIES['linux'] + lib.autofill.BINARIES['linux']
BINARIES['win32'] = BINARIES['win32'] + lib.autofill.BINARIES['win32']
BINARIES['darwin'] = BINARIES['darwin'] + lib.autofill.BINARIES['darwin'] + lib.importer.BINARIES['darwin']
BINARIES['linux'] = BINARIES['linux'] + lib.autofill.BINARIES['linux'] + lib.importer.BINARIES['linux']
BINARIES['win32'] = BINARIES['win32'] + lib.autofill.BINARIES['win32'] + lib.importer.BINARIES['win32']

INCLUDE_DIRS = lib.extensions.INCLUDE_DIRS + lib.autofill.INCLUDE_DIRS
GENERATED_INCLUDE_DIRS = lib.extensions.GENERATED_INCLUDE_DIRS + lib.autofill.GENERATED_INCLUDE_DIRS
INCLUDE_DIRS = lib.extensions.INCLUDE_DIRS + lib.autofill.INCLUDE_DIRS + lib.importer.INCLUDE_DIRS
GENERATED_INCLUDE_DIRS = lib.extensions.GENERATED_INCLUDE_DIRS + lib.autofill.GENERATED_INCLUDE_DIRS + lib.importer.GENERATED_INCLUDE_DIRS
OTHER_HEADERS = lib.extensions.OTHER_HEADERS + lib.autofill.OTHER_HEADERS
OTHER_DIRS = lib.extensions.OTHER_DIRS

Expand Down
52 changes: 52 additions & 0 deletions script/lib/importer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env python

import os

BINARIES = {
'darwin': [
'libbookmarks_browser.a',
'libcomponent_metrics_proto.a',
'libfavicon_base.a',
'libgoogle_core_browser.a',
'libhistory_core_browser.a',
'libsearch_engines.a',
'libquery_parser.a',
'liburl_formatter.a',
],
'linux': [
'libbookmarks_browser.a',
'libcomponent_metrics_proto.a',
'libfavicon_base.a',
'libgoogle_core_browser.a',
'libhistory_core_browser.a',
'libsearch_engines.a',
'libquery_parser.a',
'liburl_formatter.a',
],
'win32': [
os.path.join('obj', 'components', 'bookmakrs_browser.lib'),
os.path.join('obj', 'components', 'component_metrics_proto.lib'),
os.path.join('obj', 'components', 'favicon_base.lib'),
os.path.join('obj', 'components', 'google_core_browser.lib'),
os.path.join('obj', 'components', 'history_core_browser.lib'),
os.path.join('obj', 'components', 'search_engines.lib'),
os.path.join('obj', 'components', 'query_parser.lib'),
os.path.join('obj', 'components', 'url_formatter.lib'),
],
}

INCLUDE_DIRS = [
'components/bookmarks/browser',
'components/favicon_base',
'components/google/core/browser',
'components/history',
'components/search_engines',
'components/query_parser',
'third_party/protobuf',
]
GENERATED_INCLUDE_DIRS = [
'components/strings',
'protoc_out/components/metrics',
]
OTHER_HEADERS = [
]

0 comments on commit e116b6c

Please sign in to comment.