cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Recommended setup for cross-platform development?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 27 Feb 2016 00:10:24 +0100 (CET)

On Fri, 26 Feb 2016, Dave Nadler wrote:

> What is the recommended setup technique for all the developers like us?

You run configure once on each platform and save that particular curlbuild.h
and then you make your builds include that one for the correct platforms:

[platform 1]
./configure ...
mv curlbuild.h curlbuild-plat1.h

[platform 2]
./configure ...
mv curlbuild.h curlbuild-plat2.h

[platform 2]
./configure ...
mv curlbuild.h curlbuild-plat3.h

then you make a new curlbuild.h:

#ifdef plat1
#include "curlbuild-plat1.h"
#endif
#ifdef plat2
#include "curlbuild-plat2.h"
#endif
#ifdef plat3
#include "curlbuild-plat3.h"
#endif

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-27