Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for arm build, non-DMD builds, fix gyp dependency #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
endif
EXAMPLES_FLAGS=-Isrc/ $(DFLAGS)
lib_uv=../out/uv.a
DC=dmd
DC ?=dmd


build: duv.lib
Expand Down Expand Up @@ -52,9 +52,10 @@ uv: deps/uv/build
deps/uv/build:
git submodule update --init --recursive
cd deps/uv; mkdir -p build
git clone https://git.chromium.org/external/gyp.git deps/uv/build/gyp
git clone https://chromium.googlesource.com/external/gyp deps/uv/build/gyp
cd deps/uv ; ./gyp_uv.py -f make

clean:
rm -rf out
rm -rf deps/*
rm -rf deps/build
rm -rf deps/out
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"name": "uv",
"description": "D bindings for libuv",
"copyright": "Copyright © 2013-2014, Heapsource.com, 2014-2016 IoTone, Inc.",
"license": "MIT",
"sourcePaths": ["lib"],
"importPaths": ["lib"],
"targetType": "sourceLibrary",
"lflags-osx": ["-framework", "CoreServices"],
"sourceFiles": ["out/uv.bridged.a"],
"sourceFiles-osx-x86_64": ["dub/bin/uv.bridged-osx-x86_64.a"],
"sourceFiles-linux-x86_64": ["dub/bin/uv.bridged-linux-x86_64.a"]
"sourceFiles-linux-x86_64": ["out/duv.c.o"],
"sourceFiles-linux-armv5tel": ["dub/bin/http-parser-linux-armv5tel.d.c.o", "dub/bin/http-parser-linux-armv5tel.o"],
"sourceFiles-linux-armv7l": ["dub/bin/http-parser-linux-armv7l.d.c.o", "dub/bin/http-parser-linux-armv7l.o"]


}