From dde21e76577124c061416a20a82b3269eab95db6 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 9 May 2017 12:57:02 -0700 Subject: [PATCH] Remove unused files --- brightray/.clang-format | 8 -------- brightray/.travis.yml | 18 ----------------- brightray/CPPLINT.cfg | 1 - brightray/README.md | 42 ---------------------------------------- brightray/appveyor.yml | 25 ------------------------ brightray/script/cibuild | 29 --------------------------- brightray/script/cpplint | 40 -------------------------------------- 7 files changed, 163 deletions(-) delete mode 100644 brightray/.clang-format delete mode 100644 brightray/.travis.yml delete mode 100644 brightray/CPPLINT.cfg delete mode 100644 brightray/README.md delete mode 100644 brightray/appveyor.yml delete mode 100755 brightray/script/cibuild delete mode 100755 brightray/script/cpplint diff --git a/brightray/.clang-format b/brightray/.clang-format deleted file mode 100644 index 6fdf1dc888cb..000000000000 --- a/brightray/.clang-format +++ /dev/null @@ -1,8 +0,0 @@ -# Defines the Chromium style for automatic reformatting. -# http://clang.llvm.org/docs/ClangFormatStyleOptions.html -BasedOnStyle: Chromium -# This defaults to 'Auto'. Explicitly set it for a while, so that -# 'vector >' in existing files gets formatted to -# 'vector>'. ('Auto' means that clang-format will only use -# 'int>>' if the file already contains at least one such instance.) -Standard: Cpp11 diff --git a/brightray/.travis.yml b/brightray/.travis.yml deleted file mode 100644 index 06118787cb7f..000000000000 --- a/brightray/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -notifications: - email: false - -language: node_js -node_js: - - "6" -os: - - linux - - osx -env: - - TARGET_ARCH=x64 -osx_image: xcode7.3 - -script: './script/cibuild' - -branches: - only: - - master diff --git a/brightray/CPPLINT.cfg b/brightray/CPPLINT.cfg deleted file mode 100644 index 01e99482f2b0..000000000000 --- a/brightray/CPPLINT.cfg +++ /dev/null @@ -1 +0,0 @@ -filter=-build/header_guard,-build/include_what_you_use,-legal/copyright,-runtime/references diff --git a/brightray/README.md b/brightray/README.md deleted file mode 100644 index 655fca98fe6b..000000000000 --- a/brightray/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# Brightray - -Brightray is a static library that makes -[libchromiumcontent](https://github.com/electron/libchromiumcontent) easier to -use in applications. - -## Using it in your app - -See [electron](https://github.com/electron/electron) for example of an -application written using Brightray. - -## Development - -### Prerequisites - -* Python 2.7 -* Linux: - * Clang 3.0 -* Mac: - * Xcode -* Windows: - * Visual Studio 2010 SP1 - -### One-time setup - -You must previously have built and uploaded libchromiumcontent using its -`script/upload` script. - - $ script/bootstrap http://base.url.com/used/by/script/upload - -### Building - - $ script/build - -Building Brightray on its own isn’t all that interesting, since it’s just a -static library. Building it into an application is the only way to test it. - -## License - -In general, everything is covered by the [`LICENSE`](LICENSE) file. Some files -specify at the top that they are covered by the -[`LICENSE-CHROMIUM`](LICENSE-CHROMIUM) file instead. diff --git a/brightray/appveyor.yml b/brightray/appveyor.yml deleted file mode 100644 index d623fdc8c64b..000000000000 --- a/brightray/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: "{build}" - -clone_depth: 10 - -os: Visual Studio 2015 - -init: - - git config --global core.autocrlf input - -platform: - - x64 - -install: - - cmd: SET PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH% - - cmd: SET PATH=C:\python27;%PATH% - - cmd: git submodule update --init --recursive - - cmd: bash script/cibuild - -branches: - only: - - master - -# disable build and test phases -build: off -test: off diff --git a/brightray/script/cibuild b/brightray/script/cibuild deleted file mode 100755 index c4477368514c..000000000000 --- a/brightray/script/cibuild +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -set -ex - -script/cpplint - -# Make cloned repository complete -git fetch --unshallow origin HEAD - -# Clone Electron -git clone https://github.com/electron/electron --depth 1 --recursive - -# Checkout current brightray commit into Electron -cd electron/vendor/brightray -git fetch ../../.. -git reset --hard FETCH_HEAD - -# Commit change -cd ../.. -git add vendor/brightray -git config --local user.email "test@github.com" -git config --local user.name "Test" -git commit --message 'Upgrading brightray' - -# Bootstrap Electron -npm run bootstrap -- --dev - -# Build Electron with brightray commit -npm run build diff --git a/brightray/script/cpplint b/brightray/script/cpplint deleted file mode 100755 index 964f2009fc32..000000000000 --- a/brightray/script/cpplint +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python - -import fnmatch -import os -import subprocess -import sys - - -SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) -CPPLINT = os.path.join(SOURCE_ROOT, 'vendor', 'libchromiumcontent', 'vendor', 'depot_tools', 'cpplint.py') - -IGNORED_FILES = [ - os.path.join('browser', 'mac', 'bry_inspectable_web_contents_view.h'), - os.path.join('browser', 'mac', 'event_dispatching_window.h'), - os.path.join('browser', 'mac', 'notification_center_delegate.h'), -] - -def main(): - os.chdir(SOURCE_ROOT) - files = list_files(['browser', 'common'], - ['*.cc', '*.h']) - return cpplint(set(files) - set(IGNORED_FILES)) - - -def list_files(directories, filters): - matches = [] - for directory in directories: - for root, _, filenames, in os.walk(directory): - for f in filters: - for filename in fnmatch.filter(filenames, f): - matches.append(os.path.join(root, filename)) - return matches - - -def cpplint(files): - return subprocess.call([sys.executable, CPPLINT] + list(files)) - - -if __name__ == '__main__': - sys.exit(main())