Giter Club home page Giter Club 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

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

  1. 需要依赖glib,有些Linux发行版不带glib,需要自行安装,安装之后需要修改CMakeLists.txt中BASE_INCLUDE_PLATFORM_DIRECTORIES这个变量所定义的glib头文件目录。
  2. 进入scm目录,运行build_base_linux.sh脚本编译即可。

macOS

要求: Xcode 10.1或更高版本

  1. 需要依赖libevent,推荐使用这个版本:https://chromium.googlesource.com/chromium/+/trunk/third_party/libevent
  2. 编译安装完成之后,Xcode打开 chromium-base\src\xcode\base.xcodeproj编译即可。
  3. 如果出现找不到libevent相关头文件或库的编译、链接错误,需要改下Build Setting中头文件和库文件搜索路径。

如何使用

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

文档

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

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.