Coder Social home page Coder Social logo

gypdemo's Introduction

chromium gyp 构建系统的一些演示示例

说明

  1. hello 使用gyp生成一个最简单的程序
  2. hello-jar 构建一个.jar 的包
  3. hello-jni 生成jni注册头文件
  4. hello-apk 构建一个apk包
  5. hello-apk-with-jni 构建一个使用jni模块的apk

使用方法:

在chromium/src/build/all_android.gyp "dependencies" 字段中中增加下面一句话

'../gypdemo/gypdemo.gyp:gypdemo',

使用编译目标

  1. 生成makefile cd chromium/src/ . build/android/envsetup.sh android_gyp

  2. 编译生成目标 make hello

通用的GYP使用方法

mylib-gyp 示范不依赖chromium构建环境,只使用gyp构建 (确认gyp命令已经在你的环境变量中生效)

cd mylib-gyp
gyp mylib.gyp --depth=./ -fmake
make main

gypdemo's People

Contributors

ma-zz-xth-zz-on avatar mmbox avatar

Watchers

James Cloos avatar Chen Chunsheng 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.