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

[msvc] Convert from make to cmake for native Windows builds #63

Merged
merged 1 commit into from Jul 14, 2016

Conversation

@vvuk
Copy link
Contributor

vvuk commented Jun 22, 2016

This change is Reviewable

let target = env::var("TARGET").unwrap();
if target.contains("windows") {
let dst = cmake::Config::new("harfbuzz").build();
println!("cargo:rustc-link-search=native={}", dst.display());

This comment has been minimized.

@metajack

metajack Jun 23, 2016

Contributor

Why does this one not end up in lib like the others?

This comment has been minimized.

@vvuk

vvuk Jun 24, 2016

Author Contributor

Because of the install(TARGETS harfbuzz ARCHIVE DESTINATION .). I can make this go to lib for consistency if you'd prefer.

This comment has been minimized.

@metajack

metajack Jul 11, 2016

Contributor

I'd prefer it be consistent, but if you feel strongly otherwise that's fine.

println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static=harfbuzz");
} else {
assert!(Command::new("make")

This comment has been minimized.

@metajack

metajack Jun 23, 2016

Contributor

Now we have two makefiles to maintain. Can we not get this down to one? I suppose we could do this in a followup.

This comment has been minimized.

@vvuk

vvuk Jun 24, 2016

Author Contributor

Yep, we should do this as a followup. Trying to convert this to a cross-platform cmakelist was actually painful, since Harfbuzz's configure generates a config.h with a number of important bits in it that I didn't want to track down right then. Certainly possible to do, but for an infrequently-changing library like this I didn't think it was worth it right away.

This comment has been minimized.

@metajack

metajack Jul 11, 2016

Contributor

Fair enough. Please file a bug when this lands.

@vvuk vvuk force-pushed the vvuk:msvcize branch from ebcf48d to a142389 Jun 24, 2016
@metajack
Copy link
Contributor

metajack commented Jul 11, 2016

r=me with or without the lib dir thing. Up to you.

@KiChjang
Copy link
Member

KiChjang commented Jul 11, 2016

@bors-servo delegate+

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2016

✌️ @vvuk can now approve this pull request

@vvuk vvuk merged commit fce46d7 into servo:master Jul 14, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
edunham added a commit to edunham/homu that referenced this pull request Jul 14, 2016
Confusion happened in servo/rust-harfbuzz#63 because
Homu failed to explain what "approval" meant in the current context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.