@@ -58,9 +58,17 @@ ENDIF (APPLE)
58
58
# Create list of functions to be mapped
59
59
SET ( FUNCTIONS
60
60
"G_add_color_rule"
61
+ "G_add_c_raster_color_rule"
62
+ "G_add_d_raster_color_rule"
63
+ "G_add_f_raster_color_rule"
64
+ "G_add_raster_color_rule"
61
65
"G_adjust_Cell_head"
62
66
"G_align_window"
63
67
"G_allocate_cell_buf"
68
+ "G_allocate_c_raster_buf"
69
+ "G_allocate_d_raster_buf"
70
+ "G_allocate_f_raster_buf"
71
+ "G_allocate_null_buf"
64
72
"G_allocate_raster_buf"
65
73
"G__calloc"
66
74
"G_col_to_easting"
@@ -71,17 +79,17 @@ SET ( FUNCTIONS
71
79
"G_define_standard_option"
72
80
"G_free"
73
81
"G_free_raster_cats"
74
- "G__getenv"
75
82
"G_get_fp_range_min_max"
76
83
"G_get_range_min_max"
77
- "G_get_window"
78
84
"G_get_set_window"
79
- "G__init_null_patterns"
85
+ "G_gettext"
86
+ "G_get_window"
80
87
"G_incr_void_ptr"
81
88
"G_init_colors"
82
89
"G_init_fp_range"
83
- "G_init_raster_cats "
90
+ "G__init_null_patterns "
84
91
"G_init_range"
92
+ "G_init_raster_cats"
85
93
"G_is_c_null_value"
86
94
"G_is_d_null_value"
87
95
"G_is_f_null_value"
@@ -93,19 +101,20 @@ SET ( FUNCTIONS
93
101
"G_quant_free"
94
102
"G_quant_get_limits"
95
103
"G_quant_init"
96
- "G__realloc"
97
104
"G_raster_size"
105
+ "G__realloc"
98
106
"G_row_to_northing"
99
107
"G_set_c_null_value"
100
108
"G_set_d_null_value"
101
- "G_set_f_null_value"
102
109
"G_set_d_raster_cat"
110
+ "G_setenv"
111
+ "G_set_f_null_value"
103
112
"G_set_gisrc_mode"
104
113
"G_set_null_value"
114
+ "G_set_raster_cat"
105
115
"G_set_raster_cats_title"
106
116
"G_set_raster_value_d"
107
117
"G_set_window"
108
- "G_setenv"
109
118
"G_strip"
110
119
"G_suppress_masking"
111
120
"G_trim_decimal"
@@ -116,60 +125,79 @@ SET ( FUNCTIONS
116
125
"G_zero"
117
126
)
118
127
128
+ # If a function, say G_1 called in true GRASS gis lib (loaded by QLibrary)
129
+ # calls another function G_2 which does not have to be reimplemented in gis fake lib:
130
+ # - on Linux: G_2 is resolved in original GRASS true gis lib and it is not necessary
131
+ # to add it to functions mapped in fake lib
132
+ # - on Windows: it seems that dynamic linker is searching for G_2 in the first loaded
133
+ # module of the same name, i.e. in our fake library, not in the original
134
+ # true GRASS gis lib, so we have to add all functions called in true lib
135
+ # also to mapped functions in fake lib
136
+
137
+ IF (MSVC )
138
+ SET ( FUNCTIONS
139
+ ${FUNCTIONS}
140
+ "G__getenv"
141
+ )
142
+ ENDIF (MSVC )
143
+
119
144
# List of functions which are implemented in qgsgrassgislib.cpp and
120
145
# thus we only need prototype
121
146
SET ( FUNCTION_PROTOTYPES
122
- "G__gisinit"
123
- "G_parser"
124
- "G_set_error_routine"
125
- "G_warning"
126
- "G_fatal_error"
127
- "G_done_msg"
128
- "*G_find_cell2"
129
- "*G_find_cell"
130
- "G_open_cell_old"
147
+ "G_asprintf"
148
+ "G_begin_distance_calculations"
149
+ "G_check_input_output_name"
131
150
"G_close_cell"
132
- "G_open_raster_new"
133
- "G_open_cell_new"
134
- "G_raster_map_is_fp"
135
- "G_read_fp_range"
136
- "G_read_range"
151
+ "G_command_history"
152
+ "G_database_units_to_meters_factor"
137
153
"G_debug"
138
- "G_message"
139
- "G_verbose_message"
140
- "G_set_quant_rules"
141
- "G_get_raster_row"
142
- "G_get_raster_row_nomask"
154
+ "G_distance"
155
+ "G_done_msg"
156
+ "G_fatal_error"
157
+ "G_find_cell"
158
+ "G_find_cell2"
159
+ "G_get_cellhd"
143
160
"G_get_c_raster_row"
144
161
"G_get_c_raster_row_nomask"
145
- "G_get_f_raster_row"
146
- "G_get_f_raster_row_nomask"
147
162
"G_get_d_raster_row"
148
163
"G_get_d_raster_row_nomask"
164
+ "G_get_f_raster_row"
165
+ "G_get_f_raster_row_nomask"
149
166
"G_get_map_row"
150
167
"G_get_map_row_nomask"
151
- "G_put_raster_row"
152
- "G_check_input_output_name"
153
- "G_get_cellhd"
154
- "G_database_units_to_meters_factor"
155
- "G_begin_distance_calculations"
156
- "G_distance"
168
+ "G_get_raster_map_type"
169
+ "G_get_raster_row"
170
+ "G_get_raster_row_nomask"
171
+ "G__gisinit"
157
172
"G_legal_filename"
158
- "G_tempfile"
159
- "G_mapset"
160
173
"G_location"
161
- "G_write_colors"
174
+ "G_make_aspect_fp_colors"
175
+ "G_mapset"
176
+ "G_maskfd"
177
+ "G_message"
178
+ "G_open_cell_new"
179
+ "G_open_cell_old"
180
+ "G_open_raster_new"
181
+ "G_parser"
182
+ "G_put_raster_row"
162
183
"G_quantize_fp_map_range"
184
+ "G_raster_map_is_fp"
185
+ "G_read_colors"
186
+ "G_read_fp_range"
187
+ "G_read_history"
188
+ "G_read_range"
163
189
"G_read_raster_cats"
164
- "G_write_raster_cats"
190
+ "G_set_cats_title"
191
+ "G_set_error_routine"
192
+ "G_set_quant_rules"
165
193
"G_short_history"
194
+ "G_tempfile"
195
+ "G_vasprintf"
196
+ "G_verbose_message"
197
+ "G_warning"
198
+ "G_write_colors"
166
199
"G_write_history"
167
- "G_maskfd"
168
- "G_command_history"
169
- "G_set_cats_title"
170
- "G_read_history"
171
- "G_read_colors"
172
- "G_make_aspect_fp_colors"
200
+ "G_write_raster_cats"
173
201
)
174
202
175
203
SET ( FUNCTIONS_ALL
0 commit comments