GithubHelp home page GithubHelp logo

chromium-base's Introduction

chromium-base

from the Google Chromium. That code include:

  1. Base component and cross platform wrap, like file\process\thread\path...
  2. Some high-performance container.
  3. Lightweight smart pointer.
  4. Callback and Bind.
  5. Message loop and task.
  6. Characters and timer.

如何编译

Windows

要求: VS 2017 15.9或更高版本.
打开 chromium-base\src\base.sln 文件之后选择目的平台直接编译即可.

Linux

环境:

  1. libevent
git clone https://github.com/libevent/libevent.git
cd libevent
mkdir build && cd build
cmake ..
make
sudo make install
cd ../.. && rm -rf libevent # Optional
  1. gtest
git clone https://github.com/google/googletest.git
cd googletest
mkdir build && cd build
cmake ..
make
sudo make install
cd ../.. && rm -rf googletest # Optional
  1. glib
sudo apt update
sudo apt install libglib2.0-dev

构建

要求: CMake 3.6或更高版本,GCC 7.3或更高版本。

  1. 需要链接glib,有些Linux发行版不带glib,需要自行安装,安装之后需要修改CMakeLists.txt中BASE_INCLUDE_PLATFORM_DIRECTORIES这个变量所定义的glib头文件目录。
  2. 构建方式1:(推荐使用VSCode的Cmake插件,可一键构建)
  3. 构建方式2:命令行方式构建
mkdir build
cmake ..
# 方法1:并行构建,适用于Cmake 3.12及以上版本
cmake --build . --config Debug --target all --parallel 8
# 方法2:使用make
make -j8

如何使用

包含 base\base_export.h文件或其他模块的头文件,链接base.dll/libbase.so即可。

文档

See chromium-base-api-use-manual.md

chromium-base's People

Contributors

shaoyuan1943 avatar 0x8ac8d6c7 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.