Skip to content

0x8AC8D6C7/chromium-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published