-
Notifications
You must be signed in to change notification settings - Fork 254
JBR-4578 Add Java ATK Wrapper #475
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
Open
tanya011
wants to merge
323
commits into
JetBrains:jbr21
Choose a base branch
from
tanya011:jbr21
base: jbr21
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+21,897
−7
Open
Changes from 55 commits
Commits
Show all changes
323 commits
Select commit
Hold shift + click to select a range
d390cbf
[args null check] jawobject: null check for args
tanya011 ca3c2a5
[vars null check] jawobject: null check for vars
tanya011 bcc42f4
[args null check] jawselection: null check for args
tanya011 0280590
[vars null check] jawselection: null check for vars
tanya011 b461e01
[args null check] jawtable: check the arguments
tanya011 dfa592e
[vars null check] jawtable: check the vars
tanya011 4d97796
[args null check] jawstablecell: check nulls in args
tanya011 e561878
[vars null check] jawstablecell: null check for vars
tanya011 0c35f15
[args null check] jawtext: null check for args
tanya011 3b5fc96
[vars null check] jawtext: null check for vars
tanya011 91fb0c3
[args null check] jawtoplevel: null check for args
tanya011 f41f566
[vars null check] jawtoplevel: null check for vars
tanya011 95a4fcf
[args null check] jawutil: null check for args
tanya011 61bd7bc
[vars null check] jawutil: null check for vars
tanya011 2b2bde6
[args null check] jawvalue: null check for args
tanya011 07799ca
[vars null check] jawvalue: null check for vars
tanya011 4106d05
[refactoring] clang-format
tanya011 7dbf79d
AtkObject: getAcceleratorText
tanya011 4643895
AtkObject: i -> j in the loop
tanya011 d3486ad
AtkOSelection: Should be run on EDT
tanya011 cb6423b
AtkObject: missing import
tanya011 fe438b5
AtUtil: invokeInSwing -> invokeInSwingAndWait
tanya011 892cf52
[refactoring]
tanya011 194f9f5
start -> rightStart
tanya011 bed9a12
p may be null
tanya011 d854a35
rightOffset
tanya011 8f4c638
acc_edt_text.getCharCount() on EDT
tanya011 a639b15
if (end < start) in getRightEnd
tanya011 1b41e4c
Use getRightStart and getRightEnd in AtkEditableText
tanya011 cd2744b
fix references releases
tanya011 286490b
AtkText.java: p may be null
tanya011 6a42cfa
remove unused jaw_util_is_same_jobject
tanya011 f59aeee
static JavaVM *cachedJVM = NULL;
tanya011 2f2bad5
AtkTableCell: initializations in the constructor
tanya011 1586c15
AtkTableCell: _acc_pt.get() can be null
tanya011 d8863e9
AtkTable: get_selected_columns and get_selected_rows return null in b…
tanya011 8b7bd85
AtkTable: delete refs independently of atk_table
tanya011 a99d5ae
jawtable: The arrays don't get used
tanya011 9bbc589
jawtable: refactoring
tanya011 e1c2739
jawtoplevel: releasing jaw_toplevel->windows
tanya011 e15d426
jawtoplevel: atk_object_get_n_accessible_children
tanya011 d1bcc9b
jawtoplevel: child != null
tanya011 f681b16
atkwrapper: alloc_callback_para may return NULL
tanya011 8f7f0e3
jawimpl: g_hash_table_destroy
tanya011 d8c64e7
jawimpl: free_callback_para
tanya011 ddb40d0
remove dependency on java.management
tanya011 bff5553
Sturtup error fix and small changes in AtkWrapperDisposer
tanya011 d9b78ae
AtkProvider was removed
tanya011 1e62a62
[AtkWrapperDisposer]
tanya011 a27edb8
Improve comments in g_warning
tanya011 303cd41
[AtkWrapperDisposer]
tanya011 d9af6d0
loadAtkBridge
tanya011 872df29
clang-format
tanya011 fafc0ab
jawimpl: shouldn't check the root
tanya011 9d3ed12
[null check]
tanya011 5f6da00
[AtkWrapperDisposer] unused `set`
tanya011 5b000bd
atkwrapper: free_callback_para_event
tanya011 c7be549
clang-format
tanya011 fbffab4
AtkWrapper.java: change visibility and rename jni method
tanya011 67f14f4
AtkWrapper.java: (KeyEvent) e -> keyEvent
tanya011 9f7583c
AtkWrapper.java: newSeq
tanya011 80186dc
AtkWrapper.java: oldSeq
tanya011 3afa206
AtkWrapper.c: JNI_FALSE and JNI_TRUE
tanya011 ac18758
AtkWrapper.c: atk_bridge_set_event_context(NULL)
tanya011 c709d8c
AtkWrapperDisposer to singleton
tanya011 d394bf4
AtkWrapperDisposer: synchronized block
tanya011 cd64e39
AtkWrapperDisposer: unused field + documentation
tanya011 bc1408b
AtkWrapperDisposer: DisposerRecord is unused
tanya011 ad0a3ce
AtkWrapperDisposer: add addRecordWithDefaultReference
tanya011 5ed9138
AtkWrapperDisposer: Object -> AccessibleContext
tanya011 57da895
AtkWrapperDisposer: InnocuousThread
tanya011 84387bb
AtkWrapper: g_free(event)
tanya011 8a6b38a
AtkWrapper: g_free(insert_text) and g_free(delete_text)
tanya011 8d0a963
AtkWrapper: child_impl ref and unref
tanya011 c1566fa
[AtkWrapperDisposer]
tanya011 16166eb
Reuse AtkSignal values in native
tanya011 41e4f89
[AtkWrapperDispatcher]
tanya011 4a27b9e
Changes in get_string_value
tanya011 dab8a90
[AtkWrapperDispatcher]
tanya011 2d6b080
AtkTable: set_row_description and set_column_description
tanya011 254103b
clang-format
tanya011 0718faa
clang-format
tanya011 8b2200e
clang-format
tanya011 97083b0
Unused var `args`
tanya011 6f5781e
jaw_util_get_jni_env
tanya011 cfbe0c0
Names for threads
tanya011 c033f05
transfer full or none?
tanya011 47bdd73
clang-format
tanya011 621da4d
remove data->link_table
tanya011 98737a3
jaw_hypertext_get_link: add documentation
tanya011 2306612
AtkText: some refactoring in getRightEnd
tanya011 9c4d15f
AtkText: fix get_text_XXX_offset and add documentation
tanya011 614d57f
AtkText: refactoring, separate jni functions and not jni
tanya011 ff95928
AtkText: introduce `jaw_text_get_string_at_offset`
tanya011 5f071b2
AtkUtil: documentation
tanya011 33d83dc
AtkWrapper text events: documentation
tanya011 692389f
PushLocalFrame and PopLocalFrame
tanya011 ec21e60
AtkWrapper: registerPropertyChangeListener -> register_property_chang…
tanya011 063e1f2
fix in jaw_impl_find_instance
tanya011 2a53171
[AtkWrapperDisposer]
tanya011 36fcf78
jawobject: `g_object_ref` in `jaw_object_ref_child`
tanya011 a35d6b4
Some comments and refactoring
tanya011 5b53f8d
atkwrapper: free_callback_para -> queue_free_callback_para
tanya011 3eeb026
jaw_impl_get_instance_from_jaw
tanya011 c0881e9
jawutil: args.group = NULL;
tanya011 c988d0b
clang-format
tanya011 b251a3d
PushLocalFrame and PopLocalFrame
tanya011 92b2fcf
AtkWrapper dispatchKeyEvent
tanya011 6a2ab7c
AtkWrapper: type_pressed and type_released mau be null
tanya011 1fb4bb8
AtkWrapper: jaw_vdc_last_ac
tanya011 bd37af1
PushLocalFrame and PopLocalFrame
tanya011 a357c6c
jawtable: env -> jniEnv
tanya011 913b5a8
PushLocalFrame and PopLocalFrame
tanya011 1f74ead
PushLocalFrame and PopLocalFrame
tanya011 e879373
Refactoring + documentation
tanya011 615b021
AtkProvider
tanya011 5af8449
refactoring
tanya011 ff6bea6
Check `java.lang.Boolean.parseBoolean(System.getProperty("linux.jdk.a…
tanya011 82fa527
refactoring
tanya011 2871ae2
Add assert EventQueue.isDispatchThread();
tanya011 067e0c4
refactoring
tanya011 f4d4c23
Introduce AtkInterface
tanya011 2d875c5
clang-format
tanya011 2f1aeaf
AtkWrapperDisposer
tanya011 e62004e
refactoring
tanya011 1195461
AtkWrapperDisposer
tanya011 10bf5d4
AtkAction: check i
tanya011 5641dc7
AtkAction: add fixme comment
tanya011 3ce003a
refactoring
tanya011 29fb3a8
AtkWrapperDisposer logging
tanya011 737ab28
AtkWrapper: define accessibilityEnabled
tanya011 274a64e
AtkWrapperDisposer: imports
tanya011 0ea521a
AtkInterface: documentation + refactoring
tanya011 7c3c6c3
AtkComponent: documentation + refactoring
tanya011 25133c2
jawimpl: documentation
tanya011 8552569
AtkWrapper: missed System.loadLibrary("atk-wrapper");
tanya011 b149772
Remove added dependencies
tanya011 0d679c0
Remove dead code and unused variables
tanya011 4540f43
Make public methods private where it is possible
tanya011 63aae9b
Make INSTANCE volatile for the correct check outside the synchronized…
tanya011 8457be1
Add comments
tanya011 2317a5e
Init data right before its usage
tanya011 2d4e7fd
Fix all data_finalize methods
tanya011 90bf7da
Fix wrong usages of vars
tanya011 9ff4daa
Setting to null after deleting global ref
tanya011 d6283dc
Remove para->ac
tanya011 4fecd3a
Free para in all cases
tanya011 d3dda7d
Add `ReleaseStringUTFChars`
tanya011 dcee3ee
add PopLocalFrame and DeleteGlobalRef
tanya011 afdbe8b
DeleteGlobalRef(jniEnv, jaw_vdc_last_ac)
tanya011 0db7e0d
fix static var initializing
tanya011 3eb70cf
add g_object_unref(G_OBJECT(jaw_impl));
tanya011 4868f2b
Remove temp_ref
tanya011 d9167f9
obj global ref to local ref
tanya011 46b810d
Fix default invalid values usage
tanya011 4a4d74c
jawtablecell.c: small fixes and refactorings
tanya011 1566dc2
jawtext: fix
tanya011 8d3767e
jawtext.c and AtkText.java: different small fixes
tanya011 f9a99f3
toplevel.c: fixes and refactoring
tanya011 bc66169
ATK_ROLE_RADIO_BUTTON
tanya011 3759d67
all files refactoring
tanya011 a5dbdad
fix thread safety
tanya011 91c7b30
jawaction.c
tanya011 c00e182
AtkComponent.java: refactorings
tanya011 d06cfbe
jawcomponent.c : implement jaw_jawcomponent_init_jni_cache and add (*…
tanya011 c34e65c
jaweditabletext.c : implement jaw_editable_text_init_jni_cach and add…
tanya011 f73bf61
jawhyperlink.c: implement jaw_editable_text_init_jni_cach and add (*j…
tanya011 0967961
jawhypertext.c: implement jaw_editable_text_init_jni_cach and add (*j…
tanya011 f4a63b9
jawimage.c: implement jaw_editable_text_init_jni_cach and add (*jniEn…
tanya011 9337613
jawobject.c: implement jaw_editable_text_init_jni_cach and add (*jniE…
tanya011 d27ae05
jawselection.c: implement jaw_editable_text_init_jni_cach and add (*j…
tanya011 9c1f393
check NewGlobalRef in data_init
tanya011 521de7c
introduce jaw_vdc_clear_last_ac
tanya011 5845e1d
fixed wrong type usage
tanya011 9d51adf
add g_warning
tanya011 da01ef4
jawutil.c: illegal value in bitmask is 0
tanya011 0892346
jawtable.c: implement jaw_editable_text_init_jni_cach and add (*jniEn…
tanya011 1ef5a78
jawtablecell.c: implement jaw_editable_text_init_jni_cach and add (*j…
tanya011 7f7d14f
jawtext.c: implement jaw_editable_text_init_jni_cach and add (*jniEnv…
tanya011 e3cda66
jawvalue.c: implement jaw_editable_text_init_jni_cach and add (*jniEn…
tanya011 98e590c
AtkComponent.java: add comment for future to check function logic
tanya011 6ebb31f
java files: fix modifiers
tanya011 d6cfd5b
java files: all files 'reformat code'
tanya011 225dec5
jawcomponent.c: fix wrong types return
tanya011 7acc913
jawcomponent.c: remove second (*jniEnv)->PopLocalFrame(jniEnv, NULL);
tanya011 a5040e2
jawcomponent.c: doc says @x: (out) (optional), so the implementation …
tanya011 e81e500
jawcomponent.c: add a comment todo
tanya011 affc494
jawcomponent.c: use g_debug in jaw_editable_text_data_finalize
tanya011 00a3bb8
AtkProvider.java: change default value
tanya011 5e48eac
jawhyperlink.c: add checks in jaw_hyperlink_new
tanya011 3c64225
jawhyperlink.c: add null check
tanya011 41b6eef
jawaction.c: add todo
tanya011 9eb975b
jawhypertext.c: add null check
tanya011 b10e004
jawtable.c: fix jaw_table_get_selected_columns and jaw_table_get_sele…
tanya011 d124791
module-info.java: remove `exports org.GNOME.Accessibility`
tanya011 913f637
jawtablecell.c:
tanya011 368f5ea
jawtext.c: text and jstrText are never used
tanya011 5b0fa01
jawtext.c: parameters are optional
tanya011 fc97656
jawhyperlink.c, jawobject.c, jawtoplevel.c: fix finalize and dispose …
tanya011 db34fdd
jawvalue.c: check if value is inited before g_value_unset
tanya011 e8bfeb3
jawvalue.c: separate int and short
tanya011 b985155
jawvalue.c: cache Number classes
tanya011 57dfeed
jawvalue.c: introduce jaw_jni_clear_exception
tanya011 851f08b
add cleanup_and_fail to c files
tanya011 150c926
jawutil.c: introduce jawutil_init_jni_cache
tanya011 86b8d9d
fixes with (*jniEnv)->ExceptionCheck(jniEnv)
tanya011 182c0c2
clean cashes with jaw_cache_cleanup
tanya011 3fb844d
AtkObject.java: fix [missing-explicit-ctor]
tanya011 6f0a366
jawobject.c: fix argument type
tanya011 5aad83c
AtkKeyEvent.java: keyMap should not be final
tanya011 6c91ed7
run clang-format
tanya011 c998790
AtkKeyEvent: [refactoring] meaningless boxing
tanya011 b53f2f9
AtkWrapper.c: use DeleteLocalRef instead of PopLocalFrame
tanya011 f69e397
AtkKeyEvent.java: do not cast char to int
tanya011 d077e2f
add todo
tanya011 5b259e4
JAW_GET_OBJ_IFACE and JAW_GET_OBJ: create local ref instead of global
tanya011 358cef8
add debug comments
tanya011 ed1a7bf
jawcache.h: move variable declarations back to seperate files
tanya011 285016f
jawcache.h: add #include <glib.h>
tanya011 a34e067
jawobject.c: cash some classes and methods
tanya011 6a5998d
jawimpl.c: cash some classes and methods
tanya011 3a6e888
AtkWrapper.c: cash some classes and methods
tanya011 3eb3261
introduce JAW_DEFAULT_LOCAL_FRAME_SIZE
tanya011 7e22f06
JAW_GET_OBJ_IFACE and JAW_GET_OBJ: create local ref instead of global
tanya011 5ea71b0
add todo
tanya011 1b8f907
jawtablecell.c: remove unused description and jstrDescription
tanya011 30c8ade
jawtable.c: add todo
tanya011 7735822
add mutex to data
tanya011 92c6977
jawimpl.c: rename var
tanya011 03abad3
Use const gchar* where string is not modified through this pointer
tanya011 fc72063
AtkWrapper.c: remove PushLocalFrame
tanya011 5e89df9
remove wrong (*jniEnv)->DeleteGlobalRef(jniEnv, ac);
tanya011 be5656a
AtkText.java: return number of selected regions, not length
tanya011 27410c7
AtkText.java and jawtext.c: fix typos
tanya011 6ec65a0
AtkTableCell.java: check instanceof instead of casting
tanya011 abd3264
AtkTableCell.java: add null checks
tanya011 88e09b3
Add null checks before addRecord
tanya011 a06b6bc
AtkWrapper.java: use equals so we don't send unnecessary signals
tanya011 91efa64
AtkWrapper.java: add null check
tanya011 65eb219
AtkComponent.java: fix logic in set_extents and get_extents
tanya011 a326719
AtkComponent: implement set_position
tanya011 8f1415b
AtkComponent: implement set_size
tanya011 29ae7d9
AtkComponent.java: fix warnings by using the right methods
tanya011 d755ce8
AtkKeyEvent.java: call String.valueOf(char) instead of String.valueOf…
tanya011 2c35aea
log stacktrace with JAW_DEBUG and all warnings with glib
tanya011 3707706
Remove JAW_CHECK_NULL
tanya011 af7b8dd
Implement AccessibleAnnouncer for Wayland
tanya011 8ebb6c3
Running clang-format
tanya011 cc8050c
Rename description and jstrDescription vars
tanya011 29ff62d
get_string_at_offset is implemented
tanya011 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| ################################################################################ | ||
| # Setup at-spi2-atk | ||
| ################################################################################ | ||
| AC_DEFUN_ONCE([LIB_SETUP_AT_SPI2_ATK], | ||
| [ | ||
| AC_ARG_WITH(at-spi2-atk, [AS_HELP_STRING([--with-at-spi2-atk], | ||
| [specify prefix directory for the at-spi2-atk package | ||
| (expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
| AC_ARG_WITH(at-spi2-atk-include, [AS_HELP_STRING([--with-at-spi2-atk-include], | ||
| [specify directory for the at-spi2-atk include files])]) | ||
| AC_ARG_WITH(at-spi2-atk-version, [AS_HELP_STRING([--with-at-spi2-atk-version], | ||
| [specify version for the at-spi2-atk package])]) | ||
|
|
||
| if test "x$NEEDS_LIB_AT_SPI2_ATK" = xfalse || test "x${with_at_spi2_atk}" = xno || \ | ||
| test "x${with_at_spi2_atk_include}" = xno; then | ||
| if (test "x${with_at_spi2_atk}" != x && test "x${with_at_spi2_atk}" != xno) || \ | ||
| (test "x${with_at_spi2_atk_include}" != x && test "x${with_at_spi2_atk_include}" != xno); then | ||
| AC_MSG_WARN([[at-spi2-atk not used, so --with-at-spi2-atk[-*] is ignored]]) | ||
| fi | ||
| AT_SPI2_ATK_CFLAGS= | ||
| AT_SPI2_ATK_LIBS= | ||
| else | ||
| AT_SPI2_ATK_FOUND=no | ||
| if test "x${with_at_spi2_atk}" != x && test "x${with_at_spi2_atk}" != xyes; then | ||
| AC_MSG_CHECKING([for at-spi2-atk header and library]) | ||
| if test "x${with_at_spi2_atk_version}" != x && "x${with_at_spi2_atk_version}" != xyes; then | ||
| AT_SPI2_ATK_VERSION="${with_at_spi2_atk_version}" | ||
| else | ||
| AC_MSG_ERROR([Define at-spi2-atk package version using --with-at-spi2-atk-version if you use --with-at-spi2-atk option.]) | ||
| fi | ||
| if test -s "${with_at_spi2_atk}/include/at-spi2-atk/2.0/atk-bridge.h"; then | ||
| AT_SPI2_ATK_CFLAGS="-I${with_at_spi2_atk}/include/at-spi2-atk/2.0" | ||
| AT_SPI2_ATK_LIBS="-L${with_at_spi2_atk}/lib -latk-bridge-2.0" | ||
| AT_SPI2_ATK_FOUND=yes | ||
| AC_MSG_RESULT([$AT_SPI2_ATK_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/at-spi2-atk/2.0/atk-bridge.h' under ${with_at_spi2_atk} given with the --with-at-spi2-atk option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_at_spi2_atk_include}" != x; then | ||
| AC_MSG_CHECKING([for at-spi2-atk headers]) | ||
| if test "x${with_at_spi2_atk_version}" != x && "x${with_at_spi2_atk_version}" != xyes; then | ||
| AT_SPI2_ATK_VERSION="${with_at_spi2_atk_version}" | ||
| else | ||
| AC_MSG_ERROR([Define at-spi2-atk package version using --with-at-spi2-atk-version if you use --with-at-spi2-atk-include option.]) | ||
| fi | ||
| if test -s "${with_at_spi2_atk_include}/at-spi2-atk/2.0/atk-bridge.h"; then | ||
| AT_SPI2_ATK_CFLAGS="-I${with_at_spi2_atk_include}/at-spi2-atk/2.0" | ||
| AT_SPI2_ATK_FOUND=yes | ||
| AC_MSG_RESULT([$AT_SPI2_ATK_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find 'include/at-spi2-atk-2.0/atk-bridge.h' under ${with_at_spi2_atk_include} given with the --with-at-spi2-atk-include option.]) | ||
| fi | ||
| fi | ||
| if test "x$AT_SPI2_ATK_FOUND" = xno; then | ||
| # Are the at-spi2-atk headers installed in the default /usr/include location? | ||
| PKG_CHECK_MODULES([AT_SPI2_ATK], [atk-bridge-2.0], | ||
| [AT_SPI2_ATK_FOUND=yes; AT_SPI2_ATK_VERSION=$("$PKG_CONFIG" --modversion atk-bridge-2.0)], | ||
| [AT_SPI2_ATK_FOUND=no; break] | ||
| ) | ||
| fi | ||
| if test "x$AT_SPI2_ATK_FOUND" = xno; then | ||
| HELP_MSG_MISSING_DEPENDENCY([at-spi2-atk]) | ||
| AC_MSG_ERROR([Could not find at-spi2-atk! $HELP_MSG ]) | ||
| fi | ||
| fi | ||
| AT_SPI2_ATK_CFLAGS="$AT_SPI2_ATK_CFLAGS -DATSPI_MAJOR_VERSION=$(echo $AT_SPI2_ATK_VERSION | cut -d. -f1) -DATSPI_MINOR_VERSION=$(echo $AT_SPI2_ATK_VERSION | cut -d. -f2) -DATSPI_MICRO_VERSION=$(echo $AT_SPI2_ATK_VERSION | cut -d. -f3)" | ||
| AC_SUBST(AT_SPI2_ATK_CFLAGS) | ||
| AC_SUBST(AT_SPI2_ATK_LIBS) | ||
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| ################################################################################ | ||
| # Setup atk | ||
| ################################################################################ | ||
| AC_DEFUN_ONCE([LIB_SETUP_ATK], | ||
| [ | ||
| AC_ARG_WITH(atk, [AS_HELP_STRING([--with-atk], | ||
| [specify prefix directory for the atk package | ||
| (expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
| AC_ARG_WITH(atk-include, [AS_HELP_STRING([--with-atk-include], | ||
| [specify directory for the atk include files])]) | ||
| if test "x$NEEDS_LIB_ATK" = xfalse || test "x${with_atk}" = xno || \ | ||
| test "x${with_atk_include}" = xno; then | ||
| if (test "x${with_atk}" != x && test "x${with_atk}" != xno) || \ | ||
| (test "x${with_atk_include}" != x && test "x${with_atk_include}" != xno); then | ||
| AC_MSG_WARN([[atk not used, so --with-atk[-*] is ignored]]) | ||
| fi | ||
| ATK_CFLAGS= | ||
| ATK_LIBS= | ||
| else | ||
| ATK_FOUND=no | ||
| if test "x${with_atk}" != x && test "x${with_atk}" != xyes; then | ||
| AC_MSG_CHECKING([for atk header and library]) | ||
| if test -s "${with_atk}/include/atk-1.0/atk/atk.h"; then | ||
| ATK_CFLAGS="-I${with_atk}/include/atk-1.0" | ||
| ATK_LIBS="-L${with_atk}/lib -latk-1.0" | ||
| ATK_FOUND=yes | ||
| AC_MSG_RESULT([$ATK_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/atk-1.0/atk/atk.h' under ${with_atk} given with the --with-atk option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_atk_include}" != x; then | ||
| AC_MSG_CHECKING([for atk headers]) | ||
| if test -s "${with_atk_include}/atk-1.0/atk/atk.h"; then | ||
| ATK_CFLAGS="-I${with_atk_include}/atk-1.0" | ||
| ATK_FOUND=yes | ||
| AC_MSG_RESULT([$ATK_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find 'include/atk-1.0/atk/atk.h' under ${with_atk_include} given with the --with-atk-include option.]) | ||
| fi | ||
| fi | ||
| if test "x$ATK_FOUND" = xno; then | ||
| # Are the atk headers installed in the default /usr/include location? | ||
| PKG_CHECK_MODULES([ATK], [atk], [ATK_FOUND=yes;], [ATK_FOUND=no; break]) | ||
| fi | ||
| if test "x$ATK_FOUND" = xno; then | ||
| HELP_MSG_MISSING_DEPENDENCY([atk]) | ||
| AC_MSG_ERROR([Could not find atk! $HELP_MSG ]) | ||
| fi | ||
| fi | ||
| AC_SUBST(ATK_CFLAGS) | ||
| AC_SUBST(ATK_LIBS) | ||
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| ################################################################################ | ||
| # Setup glib | ||
| ################################################################################ | ||
| AC_DEFUN_ONCE([LIB_SETUP_GLIB], | ||
| [ | ||
| AC_ARG_WITH(glib, [AS_HELP_STRING([--with-glib], | ||
| [specify prefix directory for the glib package | ||
| (expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
| AC_ARG_WITH(glib-include, [AS_HELP_STRING([--with-glib-include], | ||
| [specify directory for the glib include files])]) | ||
| AC_ARG_WITH(glibconfig, [AS_HELP_STRING([--with-glibconfig], | ||
| [specify prefix directory for the glibconfig package | ||
| (expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
| AC_ARG_WITH(glibconfig-include, [AS_HELP_STRING([--with-glibconfig-include], | ||
| [specify directory for the glibconfig include files])]) | ||
|
|
||
| if test "x$NEEDS_LIB_GLIB" = xfalse || test "x${with_glib}" = xno || \ | ||
| test "x${with_glib_include}" = xno || \ | ||
| test "x${with_glibconfig}" = xno || test "x${with_glibconfig_include}" = xno; then | ||
| if (test "x${with_glib}" != x && test "x${with_glib}" != xno) || \ | ||
| (test "x${with_glib_include}" != x && test "x${with_glib_include}" != xno) || \ | ||
| (test "x${with_glibconfig}" != x && test "x${with_glibconfig}" != xno) || \ | ||
| (test "x${with_glibconfig_include}" != x && test "x${with_glibconfig_include}" != xno); then | ||
| AC_MSG_WARN([[glib not used, so --with-glib[-*] and --with-glibconfig[-*] are ignored]]) | ||
| fi | ||
| GLIB_CFLAGS= | ||
| GLIB_LIBS= | ||
| GLIBCONFIG_CFLAGS= | ||
| else | ||
| GLIB_FOUND=no | ||
| GLIBCONFIG_FOUND=no | ||
| GLIBCONFIG_CFLAGS= | ||
| if test "x${with_glib}" != x && test "x${with_glib}" != xyes; then | ||
| AC_MSG_CHECKING([for glib header and library]) | ||
| if test -s "${with_glib}/include/glib-2.0/glib.h"; then | ||
| GLIB_CFLAGS="-I${with_glib}/include/glib-2.0" | ||
| GLIB_LIBS="-L${with_glib}/lib -lglib-2.0" | ||
| GLIB_FOUND=yes | ||
| AC_MSG_RESULT([$GLIB_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glib-2.0/glib.h' under ${with_glib} given with the --with-glib option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_glib_include}" != x; then | ||
| AC_MSG_CHECKING([for glib headers]) | ||
| if test -s "${with_glib_include}/glib-2.0/glib.h"; then | ||
| GLIB_CFLAGS="-I${with_glib_include}" | ||
| GLIB_FOUND=yes | ||
| AC_MSG_RESULT([$GLIB_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glib-2.0/glib.h' under ${with_glib_include} given with the --with-glib-include option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_glibconfig}" != x && test "x${with_glibconfig}" != xyes; then | ||
| AC_MSG_CHECKING([for glibconfig header]) | ||
| if test -s "${with_glibconfig}/include/glibconfig.h"; then | ||
| GLIBCONFIG_CFLAGS="-I${with_glibconfig}/include" | ||
| GLIBCONFIG_FOUND=yes | ||
| AC_MSG_RESULT([$GLIBCONFIG_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glibconfig.h' under ${with_glibconfig} given with the --with-glibconfig option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_glibconfig_include}" != x; then | ||
| AC_MSG_CHECKING([for glibconfig headers]) | ||
| if test -s "${with_glibconfig_include}/glibconfig.h"; then | ||
| GLIBCONFIG_CFLAGS="-I${with_glibconfig_include}" | ||
| GLIBCONFIG_FOUND=yes | ||
| AC_MSG_RESULT([$GLIBCONFIG_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glibconfig.h' under ${with_glibconfig_include} given with the --with-glibconfig-include option.]) | ||
| fi | ||
| fi | ||
| if test "x$GLIB_FOUND" = xno || test "x$GLIBCONFIG_FOUND" = xno; then | ||
| # Are the glib headers installed in the default /usr/include location? | ||
| PKG_CHECK_MODULES([GLIB], [glib-2.0], [GLIB_FOUND=yes; GLIBCONFIG_FOUND=yes], [GLIB_FOUND=no; GLIBCONFIG_FOUND=no; break]) | ||
| fi | ||
| if test "x$GLIB_FOUND" = xno || test "x$GLIBCONFIG_FOUND" = xno; then | ||
| HELP_MSG_MISSING_DEPENDENCY([glib]) | ||
| AC_MSG_ERROR([Could not find glib! $HELP_MSG]) | ||
| fi | ||
| fi | ||
| GLIB_CFLAGS="$GLIB_CFLAGS $GLIBCONFIG_CFLAGS" | ||
| AC_SUBST(GLIB_CFLAGS) | ||
| AC_SUBST(GLIB_LIBS) | ||
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| ################################################################################ | ||
| # Setup gobject | ||
| ################################################################################ | ||
| AC_DEFUN_ONCE([LIB_SETUP_GOBJECT], | ||
| [ | ||
| AC_ARG_WITH(gobject, [AS_HELP_STRING([--with-gobject], | ||
| [specify prefix directory for the gobject package | ||
| (expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
| AC_ARG_WITH(gobject-include, [AS_HELP_STRING([--with-gobject-include], | ||
| [specify directory for the gobject include files])]) | ||
|
|
||
| if test "x$NEEDS_LIB_GOBJECT" = xfalse || test "x${with_gobject}" = xno || \ | ||
| test "x${with_gobject_include}" = xno; then | ||
| if (test "x${with_gobject}" != x && test "x${with_gobject}" != xno) || \ | ||
| (test "x${with_gobject_include}" != x && test "x${with_gobject_include}" != xno); then | ||
| AC_MSG_WARN([[gobject not used, so --with-gobject[-*] is ignored]]) | ||
| fi | ||
| GOBJECT_CFLAGS= | ||
| GOBJECT_LIBS= | ||
| else | ||
| GOBJECT_FOUND=no | ||
|
|
||
| if test "x${with_gobject}" != x && test "x${with_gobject}" != xyes; then | ||
| AC_MSG_CHECKING([for gobject header and library]) | ||
| if test -s "${with_gobject}/include/glib-2.0/gobject/gobject.h"; then | ||
| GOBJECT_CFLAGS="-I${with_gobject}/include/glib-2.0/gobject" | ||
| GOBJECT_LIBS="-L${with_gobject}/lib -lgobject-2.0" | ||
| GOBJECT_FOUND=yes | ||
| AC_MSG_RESULT([$GOBJECT_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glib-2.0/gobject/gobject.h' under ${with_gobject} given with the --with-gobject option.]) | ||
| fi | ||
| fi | ||
| if test "x${with_gobject_include}" != x; then | ||
| AC_MSG_CHECKING([for gobject headers]) | ||
| if test -s "${with_gobject_include}/glib-2.0/gobject/gobject.h"; then | ||
| GOBJECT_CFLAGS="-I${with_gobject_include}/glib-2.0/gobject" | ||
| GOBJECT_FOUND=yes | ||
| AC_MSG_RESULT([$GOBJECT_FOUND]) | ||
| else | ||
| AC_MSG_ERROR([Can't find '/include/glib-2.0/gobject/gobject.h' under ${with_gobject_include} given with the --with-gobject-include option.]) | ||
| fi | ||
| fi | ||
| if test "x$GOBJECT_FOUND" = xno; then | ||
| # Are the gobject headers installed in the default /usr/include location? | ||
| PKG_CHECK_MODULES([GOBJECT], [gobject-2.0], | ||
| [ GOBJECT_FOUND=yes;], | ||
| [ GOBJECT_FOUND=no; break ] | ||
| ) | ||
| fi | ||
| if test "x$GOBJECT_FOUND" = xno; then | ||
| HELP_MSG_MISSING_DEPENDENCY([gobject]) | ||
| AC_MSG_ERROR([Could not find gobject! $HELP_MSG ]) | ||
| fi | ||
| fi | ||
| AC_SUBST(GOBJECT_CFLAGS) | ||
| AC_SUBST(GOBJECT_LIBS) | ||
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note: here seems the full list of Ubuntu 22 packages that must be additionally installed to build the patch:
libatspi2.0-devlibatk1.0-devlibglib2.0-devlibatk-bridge2.0-dev