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

build: android support #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

build: android support

  • Loading branch information
yichoi committed May 11, 2013
commit c3c148bcbba7cbf2462f8e722613d8575d009048
@@ -1,12 +1,5 @@
VPATH=%VPATH%

CC ?= gcc
CXX ?= g++
CXXFLAGS ?=
AR ?= ar
RUSTC ?= rustc
RUSTFLAGS ?=

RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')

.PHONY: all
@@ -1,5 +1,4 @@
#!/bin/bash

SRCDIR="$(cd $(dirname $0) && pwd)"
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile

sed -e "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
5 ll.rs
@@ -26,6 +26,11 @@ extern mod linking { }
#[link_args="-L../libcss -lcss -L../libparserutils -lparserutils -L../libwapcaplet -lwapcaplet"]
extern mod linking { }

#[cfg(target_os = "android")]
#[nolink]
#[link_args="-L../libcss -lcss -L../libparserutils -lparserutils -L../libwapcaplet -lwapcaplet"]
extern mod linking { }

// Generally true
pub type c_enum = uint32_t;
pub type rust_enum = uint;
@@ -549,6 +549,9 @@ pub mod hint {
#[cfg(target_arch = "x86")]
fn status_field_offset() -> uint { 16 }

#[cfg(target_arch = "arm")]
fn status_field_offset() -> uint { 16 }

priv fn hint_data_field<T>(llhint: *mut css_hint) -> &mut T {
unsafe { transmute(llhint) }
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.