Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fungos/cr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: briskml/cr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 25, 2019

  1. add esy and pkg-config

    rauanmayemir committed Feb 25, 2019
    Copy the full SHA
    7fd04de View commit details
Showing with 34 additions and 0 deletions.
  1. +19 −0 Makefile
  2. +15 −0 esy.json
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
define cr_pc
prefix=$(cur__install)
exec_prefix=$${prefix}
includedir=$${prefix}/include
libdir=$${exec_prefix}/lib

Name: cr
Description: cr.h: A Simple C Hot Reload Header-only Library
Version: 0.1.0
Cflags: -I$${includedir}
Libs:
endef
export cr_pc

install:
mkdir $(cur__install)/include
mkdir $(cur__install)/lib/pkgconfig
cp ./cr.h $(cur__install)/include
echo "$$cr_pc" > $(cur__install)/lib/pkgconfig/cr.pc
15 changes: 15 additions & 0 deletions esy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "cr",
"version": "0.1.0",
"esy": {
"build": [],
"install": ["make install"],
"buildsInSource": true,
"exportedEnv": {
"PKG_CONFIG_PATH": {
"val": "#{self.lib / 'pkgconfig' : $PKG_CONFIG_PATH}",
"scope": "global"
}
}
}
}