Comments (4)
cc_library {
...
srcs: ["generic.cpp"],
arch: {
arm: {
srcs: ["arm.cpp"],
},
x86: {
srcs: ["x86.cpp"],
},
},
}
soong_config_module_type {
name: "acme_cc_defaults",
module_type: "cc_defaults",
config_namespace: "acme",
variables: ["board"],
bool_variables: ["feature"],
value_variables: ["width"],
properties: ["cflags", "srcs"],
}
soong_config_string_variable {
name: "board",
values: ["soc_a", "soc_b", "soc_c"],
}
BoardConfig.mk file:
$(call add_soong_config_namespace, acme)
$(call add_soong_config_var_value, acme, board, soc_a)
$(call add_soong_config_var_value, acme, feature, true)
$(call add_soong_config_var_value, acme, width, 200)
soong_config_module_type_import {
from: "device/acme/Android.bp",
module_types: ["acme_cc_defaults"],
}
acme_cc_defaults {
name: "acme_defaults",
cflags: ["-DGENERIC"],
soong_config_variables: {
board: {
soc_a: {
cflags: ["-DSOC_A"],
},
soc_b: {
cflags: ["-DSOC_B"],
},
conditions_default: {
cflags: ["-DSOC_DEFAULT"],
},
},
feature: {
cflags: ["-DFEATURE"],
conditions_default: {
cflags: ["-DFEATURE_DEFAULT"],
},
},
width: {
cflags: ["-DWIDTH=%s"],
conditions_default: {
cflags: ["-DWIDTH=DEFAULT"],
},
},
},
}
cc_library {
name: "libacme_foo",
defaults: ["acme_defaults"],
srcs: ["*.cpp"],
}
from budoux.
from budoux.
تضمين التغريدة
data class Employee(
val name: String,
val email: String,
val company: String
) // + automatically generated equals(), hashCode(), toString(), and copy()
object MyCompany { // A singleton
const val name: String = "MyCompany"
}
fun main() { // Function at the top level
val employee = Employee("Alice", // No new
keyword
"[email protected]", MyCompany.name)
println(employee)
}
from budoux.
from budoux.
Related Issues (20)
- [quality] "ありがとうございます。"
- [quality] まとめる HOT 1
- [configuration] Usage on browser's web worker
- [quality] Better Support for Japanese Hiragana Adverbs
- [quality] あなたの意図したとおりに情報を伝えることができます。 HOT 1
- [quality] あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。 HOT 1
- 禁則処理
- Consider to use DocumentFragment
- Styles does not propagate in BudouX Web Components
- Numbers become <a href="tel:">links even if <meta name="format-detection" content="telephone=no"> is set on iOS HOT 4
- Deduplicate separators when processing HTML HOT 3
- Unopened HTML tag causes exception in budoux 0.6 HOT 4
- dart support HOT 1
- [Java] Java version emits close tag for self-closing tags
- [java] `HTMLProcessor.getText()` collapses whitespaces HOT 2
- [quality] "のみ"
- [quality] お問い合わせ
- [quality] いよいよ HOT 1
- Chrome M121 breaks <ruby> unittest HOT 4
- Clarification on the unicode used on the keys HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from budoux.