diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-11-19 08:19:48 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-12-04 13:04:57 -0800 |
commit | 9bf6277b9c4f1980e3449ddc164e748d9b762200 (patch) | |
tree | da1e9e4a8f0c69d22d412fb32b8cb08e90335ac0 /pkg.h | |
parent | 05f319d3e5a2e37788d6aa6d92c39991e4c567df (diff) | |
download | pkg-config-9bf6277b9c4f1980e3449ddc164e748d9b762200.tar.gz |
Keep Libs and Cflags together to maintain ordering
Instead of splitting to -l/-L/other and -I/other, keep the args together
and mark each argument with its type. Then we can maintain order all the
way through.
Diffstat (limited to 'pkg.h')
-rw-r--r-- | pkg.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -45,9 +45,16 @@ typedef enum ALWAYS_MATCH } ComparisonType; +typedef struct _Flag Flag; typedef struct _Package Package; typedef struct _RequiredVersion RequiredVersion; +struct _Flag +{ + FlagType type; + char *arg; +}; + struct _RequiredVersion { char *name; @@ -68,11 +75,8 @@ struct _Package GList *requires; GList *requires_private_entries; GList *requires_private; - GList *l_libs; - GList *L_libs; - GList *other_libs; - GList *I_cflags; - GList *other_cflags; + GList *libs; + GList *cflags; GHashTable *vars; GHashTable *required_versions; /* hash from name to RequiredVersion */ GList *conflicts; /* list of RequiredVersion */ |